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

hide event runs even without the datepicker being shown once #194

Open
luccasr73 opened this issue May 19, 2020 · 0 comments
Open

hide event runs even without the datepicker being shown once #194

luccasr73 opened this issue May 19, 2020 · 0 comments

Comments

@luccasr73
Copy link

luccasr73 commented May 19, 2020

After the page loads, the hide event runs without at least the datepicker ever being shown

let pickersInitial= document.querySelectorAll(' .date-initial')
        pickersInitial.forEach(elm=>{
            rome.find(elm).once('ready', function (ops) {
                rome.find(elm).on('hide',  function (v){
                    console.log(elm)
                })
            })
        })
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

1 participant