Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Can't type value #18

Closed
dlidstrom opened this issue Jun 20, 2013 · 4 comments
Closed

Can't type value #18

dlidstrom opened this issue Jun 20, 2013 · 4 comments

Comments

@dlidstrom
Copy link

It seems like it is no longer possible to type a value. I've tried without any limits (minDate/maxDate) and whenever I type into an empty input it reverts back to today's date. Then, it won't allow me to erase any of the digits. I'd expect date validation to take place on blur/enter/tab. I'm using 0.0.3 with the following default config:

app.config(['uiDateConfig', function (uiDateConfig) {
    angular.extend(uiDateConfig, {
        showWeek: true,
        dateFormat: 'yy-mm-dd',
        firstDay: 1
    });
}]);
@petebacondarwin
Copy link
Member

The only worry I have now is that we should probably block typing in the text box from updating the model at all and do all changes on blur...

Let me know what you think and whether this helps...

@dlidstrom
Copy link
Author

I've only tried it a few minutes now, but it seems to work perfectly. Thanks a lot!

@kdekooter
Copy link

When is this going to be released to the bower repo?

@dlidstrom
Copy link
Author

I don't think this project is being actively maintained any longer. Too bad, it is really useful.

robmunro pushed a commit to robmunro/ui-date that referenced this issue Nov 19, 2014
Getting the timing right on updating the model is really tricky.
Now, if you enter text in the input box directly it updates the model
as for any input box.  But when you blur away, it uses the date picker
to convert the value to a date object.

Previously, as soon as you made changes in the input box it was
immediately updating the date, which was preventing typing.

Closes angular-ui#18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants