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

when datepicker opening,it's focused,please do not this,ok? #2546

Closed
bondli opened this issue Aug 6, 2014 · 7 comments
Closed

when datepicker opening,it's focused,please do not this,ok? #2546

bondli opened this issue Aug 6, 2014 · 7 comments

Comments

@bondli
Copy link

bondli commented Aug 6, 2014

var focusElement = function() {
$timeout(function() {
//self.element[0].focus();
}, 0 , false);
};

@ivesdebruycker
Copy link

It would be better if it was possible to deactivate this feature trough datepickerConfig instead of removing it altogether, as the OP suggests.

Usecase: We have a datepicker popping up when an input-field gets focus, but the focus is immediately lost to the popup. You'll have to click on the input-field a second time if you want to type a date.

This could be implemented by conditionally preventing the datepicker.focus event being broadcast.

@wjkay
Copy link

wjkay commented Oct 23, 2014

+1

1 similar comment
@slavafomin
Copy link

+1

@chrisirhc chrisirhc added this to the Purgatory milestone Nov 3, 2014
@stephanie-dm
Copy link

+1

@stephanie-dm
Copy link

Will this issue ever get fixed? The input field losing focus is a major problem for us, users always have to click twice if they want to type a date in the input field. It would be great if this was configurable...

@wesleycho
Copy link
Contributor

Nothing is stopping anyone from opening a PR from being opened fixing this if it is desired - there are other much higher priority issues in need of tackling though, which is likely why there hasn't been any movement on this.

@stephanie-dm
Copy link

Thanks for the fix!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants