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

Unwanted trigger #111

Open
silency opened this issue Apr 25, 2022 · 3 comments
Open

Unwanted trigger #111

silency opened this issue Apr 25, 2022 · 3 comments

Comments

@silency
Copy link

silency commented Apr 25, 2022

Hello,
Each time i trigger a JS function, it open the datepicker popup. Any idea ?
Like in a simple form, i choose a date with datepicker, i fill 4 or 5 input text, and i choose a picture in a inputfile, when i select my picture and come back on form the popup datepicker is triggered :(
Thanks !

@mymth
Copy link
Owner

mymth commented Apr 30, 2022

I guess the datepicker's input field is receiving the focus after selecting a picture in the file input field for some reason. (maybe the date input is the first input element of the form?)

@silency
Copy link
Author

silency commented Apr 30, 2022

Hello, that's it, it is the first element of the form, have you any solution ?

@mymth
Copy link
Owner

mymth commented Apr 30, 2022

How to solve it depends on how your form is made. It seems like you have something that moves the focus automatically to the first input of a form when a file is selected or the form or its parent is shown/focused. You may need to disable it.

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

No branches or pull requests

2 participants