Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendarpicker issue on Firefox with all locales (except en-US) #1506

Closed
bauzlefou opened this issue Feb 27, 2020 · 5 comments
Closed

Calendarpicker issue on Firefox with all locales (except en-US) #1506

bauzlefou opened this issue Feb 27, 2020 · 5 comments

Comments

@bauzlefou
Copy link

bauzlefou commented Feb 27, 2020

Hello,
First, sorry for my poor English ...

here is a simple html code :

calendarpicker.txt

Works perfectly on first load, but if i refresh the page , i get this message :

Error creating component calendarpicker metro.js:4109:32
TypeError: h[o] is undefined

Works fine with data-locale="en-US" only ... I tested with meta "metro4:locale", with METRO.locale and with element.attr("data-locale","fr-FR"), same issue.

Browser : Firefox 71.0.1 (lastest) - no plugin
OS : Windows 10

Works fine on Chrome ;)

Any ideas ?

Thanks.

ps : try calendarpicker with Firefox , and look for the "picker value" section, make refresh (one or more) and see the result(s) 😃

@olton
Copy link
Owner

olton commented Feb 27, 2020

This is a problem with the Firefox cache. I will look for how to fix it. I don’t have a quick solution now.

@olton
Copy link
Owner

olton commented Feb 28, 2020

Add to input attribute autocomplete="off". This solved the problem.

@bauzlefou
Copy link
Author

You're Awesome !!!
I never use this attribute, so i have will never thought about it.

Thank You.

@olton
Copy link
Owner

olton commented Feb 28, 2020

Thanks for this bug report. In 4.3.6 I added attribute data-value to set init input value. This solved the problem for FF. You can use value or data-value in your project to set init value, but for FF, if you use value attribute, you must add autocomplete="false" to input.

@olton olton reopened this Feb 28, 2020
@olton olton added this to the v4.3.6 milestone Feb 28, 2020
@olton olton added Fixed and removed bug labels Feb 28, 2020
@bauzlefou
Copy link
Author

I was stuck on this bug for 2 days, moreover, at the beginning I did not test on Chrome ... I thought it was because of my code
if I had known I would have posted faster !
Thanks again ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants