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

event show not working properly #7

Open
zzfortezz opened this issue Jul 25, 2018 · 1 comment
Open

event show not working properly #7

zzfortezz opened this issue Jul 25, 2018 · 1 comment

Comments

@zzfortezz
Copy link

here is my setup
$('.filterdate').datepicker({ format: 'MM/dd/yyyy', placeholder :textdate, });

$('.opendate').click(function(){ $('.filterdate').datepicker('show'); })

when click button to open datepicker, it close immediately
please view image for more detail https://i.imgur.com/88KUIV7.gifv

@Lutsman
Copy link

Lutsman commented Oct 8, 2018

dirty solution but probably works
$('.opendate').click(function(e){
e.stopImmediatePropagation();
e.preventDefault();
$('.filterdate').datepicker('show');
})

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