Safari 16.3 autofill doesn't work with x-model #3482
-
As per this CodePen, using Safari 16.3 autofill just sets values to null: https://codepen.io/dannyuk1982/pen/BaOvRmP Under this code in x-model.js
Amending the code to this seems to fix it:
I did find several other bugs for Safari + Autofill, but all said it was fixed. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
Probably just do if (event instanceof CustomEvent)
return event.detail ?? event.target.value
edit: above is tested and works, so you can do that PR if you'd like, or I can PR Exists: #3483 |
Beta Was this translation helpful? Give feedback.
-
I'm not actually sure how the void got in there (multitasking this morning), only change should have been to add |
Beta Was this translation helpful? Give feedback.
-
This is a pretty big issue in the form I am currently building. It is basically unusable if the user uses Safari autocomplete to fill in fields. |
Beta Was this translation helpful? Give feedback.
-
Safari has become the new IE Hopefully @calebporzio can address this soon. |
Beta Was this translation helpful? Give feedback.
-
Until this gets properly fixed. which version should we roll-back to? |
Beta Was this translation helpful? Give feedback.
-
We already have a fix, I can't understand why it can't be rolled out? It's 2 lines! |
Beta Was this translation helpful? Give feedback.
-
I have since compiled Alpine from @ekwoka's PR #3483 and am using my custom build in production until the fix is released |
Beta Was this translation helpful? Give feedback.
Probably just do
void 0
is justundefined
, btwedit: above is tested and works, so you can do that PR if you'd like, or I can
PR Exists: #3483