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

Button enter click, clear field #1039

Closed
TiedtTech opened this issue Aug 13, 2014 · 6 comments
Closed

Button enter click, clear field #1039

TiedtTech opened this issue Aug 13, 2014 · 6 comments
Milestone

Comments

@TiedtTech
Copy link

I have a question. Put the datapicker, and the user enters the field tells the date and click on enter. I did not want the field to be cleaned, but in my case it clean.

What setting should I use for this not to happen?

@dhruvparmar372
Copy link

I had the same issue.

@tomdrn
Copy link

tomdrn commented Aug 21, 2014

Also have this issue.

@penihel
Copy link

penihel commented Aug 28, 2014

I had the same issue.. Solution ?

@penihel
Copy link

penihel commented Aug 28, 2014

In my reality, I do not use the feature "multidate"

So I just commented the line 1205 of the file. As shown below

...
                case 13: // enter
                    focusDate = this.focusDate || this.dates.get(-1) || this.viewDate;
                    //Commented line due to the bug hit "enter" to date was clean
                    //this._toggle_multidate(focusDate); 
                    dateChanged = true;
                    this.focusDate = null;
                    this.viewDate = this.dates.get(-1) || this.viewDate;
                    this.setValue();
                    this.fill();
                    if (this.picker.is(':visible')) {
                        e.preventDefault();
                        if (this.o.autoclose)
                            this.hide();
                    }
                    break;

...

It's ugly I know, but it worked for me and I can not wait for a version correcting it.

@dhruvparmar372
Copy link

#1046 here is the PR with a fix

@acrobat
Copy link
Member

acrobat commented Dec 13, 2014

Fixed in #984

@acrobat acrobat closed this as completed Dec 13, 2014
@acrobat acrobat mentioned this issue Dec 13, 2014
2 tasks
@acrobat acrobat added this to the 1.3.1 milestone Dec 13, 2014
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

5 participants