Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Doesn't close when focus is lost from input field #7

Closed
nesl247 opened this issue Jan 17, 2014 · 7 comments
Closed

Doesn't close when focus is lost from input field #7

nesl247 opened this issue Jan 17, 2014 · 7 comments

Comments

@nesl247
Copy link

nesl247 commented Jan 17, 2014

PickMeUp should close itself when the field that it is attached to has lost focus.

@nazar-pc
Copy link
Owner

It is not that easy. Focus will be lost right when clicking on datepicker.
Anyway, if you want this functionality you can try and decide if it is useful for you:

$('input').focusout(function () {
    $(this).pickmeup('hide');
});

@nesl247
Copy link
Author

nesl247 commented Jan 17, 2014

I should probably clarify, focus is currently lost when clicking another field, but not when tabbing to one. That is where the issue is.

@nazar-pc
Copy link
Owner

I can add listener for tab key. Will it be a solution?

@nesl247
Copy link
Author

nesl247 commented Jan 17, 2014

That would definitely be the proper solution.

@nazar-pc
Copy link
Owner

Please, looks at last two commits, this issue should be fixed now. Let me know, if it works fine.

@nesl247
Copy link
Author

nesl247 commented Jan 17, 2014

This is fixed. Thanks!

@nesl247 nesl247 closed this as completed Jan 17, 2014
@nazar-pc
Copy link
Owner

I'll trigger new release in few minutes.

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

2 participants