You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the control (v1.0.39) in single select mode and searching enabled.
I get the selection result using the 'change' event.
When the user types a term in the search field to limit the displayed options and then select an option from the results, the element value seems to be empty (or having a previously selected value) during the 'change' event.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I use the control (v1.0.39) in single select mode and searching enabled.
I get the selection result using the 'change' event.
When the user types a term in the search field to limit the displayed options and then select an option from the results, the element value seems to be empty (or having a previously selected value) during the 'change' event.
This is the code I use:
_VirtualSelect.init({ ele: '#OrdSpDdl5', search: true, multiple: false, optionHeight: '26px', dropboxWidth: '400px', maxWidth: '350px', zIndex: 100, hideClearButton: true, optionsCount: 10, options: await fetch("DbGrid.ashx?c=VnlCpList&ct=1&u=" + u + "&p=" + p).then(response => response.json()), silentInitialValueSet: true, selectedValue: document.getElementById("OrdSpDdlVal5").value });
document.querySelector('#OrdSpDdl5').addEventListener("change", function () { document.getElementById("OrdSpDdlVal5").value = this.value; document.getElementById("BtOrdFlt5").click(); });_
Beta Was this translation helpful? Give feedback.
All reactions