Navigation Menu

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

Bind event bug/issue #783

Closed
qinbx opened this issue Jan 15, 2014 · 2 comments
Closed

Bind event bug/issue #783

qinbx opened this issue Jan 15, 2014 · 2 comments
Labels

Comments

@qinbx
Copy link

qinbx commented Jan 15, 2014

Hi,

I met an bind event issue.

<input type="text" id="inputText1" />

<script>
  $("#inputText1").change(function(){  alert("change") }).datepicker();
</script> 

When i change the date for #inputText1 using datepicker plugin, the alert shows 3 times.

You can try on this demo page:
http://eternicode.github.io/bootstrap-datepicker/?markup=input&format=&weekStart=&startDate=&endDate=&startView=0&minViewMode=0&todayBtn=false&language=en&orientation=auto&autoclose=on&keyboardNavigation=on&forceParse=on#sandbox

Hope there has a solution, thanks.

@qinbx qinbx closed this as completed Jan 15, 2014
@qinbx qinbx reopened this Jan 15, 2014
@eternicode
Copy link
Contributor

setValue (called by update) triggers change; _setDate (called when selecting a date) calls setValue and triggers change; and hide triggers change. There are probably more.

In short, all the things are broken. Things are in need of re-writing. Will see what I can do about that in 1.3.1 and 1.4.

@acrobat acrobat modified the milestones: 1.3.2, 1.4.0 Dec 15, 2014
@acrobat acrobat added the is-bug label Dec 24, 2014
@acrobat acrobat modified the milestones: 1.4.0, 1.4.1 Feb 18, 2015
@acrobat acrobat modified the milestone: 1.4.1 Mar 31, 2015
@acrobat
Copy link
Member

acrobat commented Apr 1, 2015

Fixed in #1337

@acrobat acrobat closed this as completed Apr 1, 2015
@acrobat acrobat mentioned this issue Apr 1, 2015
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants