cfwithdecaf
cfwithdecaf

Reputation: 35

How to trigger selectionChange event for already selected item in sap.m.combobox?

I know that the selectionChange event won't trigger again for already selected items. Is there any way to trigger on an already selected item?

Basically, when the selectionChange event occurs in the combobox, the bottom item is highlighted, and the item name is completed in advance in the input field.

For example, when I type A, BCD appears to be pre-completed. If selectionChange can't be triggered only for already selected items, can't we know the pre-completed text when the default browser input event is triggered?

Upvotes: 0

Views: 910

Answers (1)

Piyush aggarwal
Piyush aggarwal

Reputation: 772

Try fireSelectionChange() In your SelectionChange method you will get combo box in mParameters and oSource through which you get current selected key/value if your combo box.

Upvotes: 0

Related Questions