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
When creating a searchable dropdown from existing HTML, the dropdown item's value property in the element data is cleared when searching and no results are available. This is because, when the "No results" message is shown, the menuObserver mutation observer is fired which calls module.refresh(), which in turn calls module.refreshData() which removes the value and text data values from the item elements.
When creating a searchable dropdown from existing HTML, the dropdown item's
value
property in the element data is cleared when searching and no results are available. This is because, when the "No results" message is shown, themenuObserver
mutation observer is fired which callsmodule.refresh()
, which in turn callsmodule.refreshData()
which removes thevalue
andtext
data values from the item elements.Here is a jsbin that reproduces the issue: http://jsbin.com/runetopasi/edit?html,js,output
Here is the code that removes the
value
andtext
data from the items:Semantic-UI/src/definitions/modules/dropdown.js
Lines 385 to 387 in 04a3c48
The text was updated successfully, but these errors were encountered: