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'm working on an app that uses select boxes and I noticed that on Safari when you select an item from a select box it momentarily flashes a different value before showing the selected value.
I looked at the DOM helper code and noticed that input, textarea, and option are wrapped to prevent this type of behavior.
When I wrap my own select component with the wrap-form-element function the flashing goes away.
Here's an example video (I tried making a gif, but the low framerate hid the problem):
Hi,
I'm working on an app that uses select boxes and I noticed that on Safari when you select an item from a select box it momentarily flashes a different value before showing the selected value.
I looked at the DOM helper code and noticed that
input
,textarea
, andoption
are wrapped to prevent this type of behavior.When I wrap my own select component with the
wrap-form-element
function the flashing goes away.Here's an example video (I tried making a gif, but the low framerate hid the problem):
https://dl.dropboxusercontent.com/u/473648/flickering-select.mp4
The select on the right uses the default
dom/select
component, and the select on the left uses my wrapped one.Here's the code for those two select boxes:
Thanks!
The text was updated successfully, but these errors were encountered: