Fork me on GitHub
#om
<
2018-10-19
>
kingcode23:10:57

I am having a lot of trouble using :onBlur event handler within React/om. I am using it in a multiple select drop-down, in two locations. The user picks one or more choices in each drop-down, then clicks on a button - the last choice (before the click) doesn’t get preserved, but when clicking anywhere else (outside the last select) it is fine…I tried triggering a jQuery (.blur ($ :.selection)), but to no avail… I am using an (om/update! ….) form which scans through all the state objects and the dom <option>s to assign a :selected? attribute. When I print out the new cursor (returned by om/update!), the new state is accurate. However unless the user actually clicks outside the <select>, nothing happens….any ideas? Thanks..