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

onClose called with an 'undefined' as a button although a predefined one, 'clear', is touched #181

Closed
ikarami opened this Issue Dec 20, 2013 · 1 comment

Comments

Projects
None yet
3 participants
@ikarami
Copy link

ikarami commented Dec 20, 2013

Issue exists in Mobiscroll v2.8.3 and v.2.9. If a picker is initialized with a third button:

.mobiscroll({
  preset: 'datetime',
  (...)
  buttons: ['set', 'clear', 'cancel'],
  onClose: function (value, btn) {
    console.log('onClose', btn);
  }
});

then after using a 'Clear" button the onClose handler will fire and it will output 'onClose undefined'. For 'Set' and 'Cancel' buttons the btn value is set properly.

@ghost ghost assigned szily20 Jan 7, 2014

szily20 added a commit that referenced this issue Jan 7, 2014

@dioslaska dioslaska closed this Jan 10, 2014

@dioslaska

This comment has been minimized.

Copy link
Contributor

dioslaska commented Jan 10, 2014

Released in 2.9.1

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