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

New refreshOptions method for refreshing the options. #564

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ikkala
Copy link

@ikkala ikkala commented Jun 16, 2015

Refactored switching of visiblity of elements in buildFilter to new updateVisibilityByFilter method. Then added new refreshOptions for refreshing of the options without rebuilding the whole UI --- preserving filter and keyboard cursor focus this way.

Originally needed this feature for the Knockout bindingHandlers: Didn't want to lost keyboard focus and other UI state when updating the options dynamically. This feature could help also at least with issue #483 ("When reconstructs the component the state is lost. To what was typed disappears").

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

Successfully merging this pull request may close these issues.

2 participants