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

hasFocus binding not working #171

Open
derrickb opened this issue Jun 30, 2016 · 0 comments
Open

hasFocus binding not working #171

derrickb opened this issue Jun 30, 2016 · 0 comments

Comments

@derrickb
Copy link

derrickb commented Jun 30, 2016

Hello, there seems to be a couple old issues posted about related problems but there isn't a solid solution, or the jsfiddles no longer work:
#106
#96

Here's an updated, simple jsfiddle demonstrating click-to-edit not working as expected:
https://jsfiddle.net/derrickb/v6jwafy7/

Click on one of the click-to-edit texts, then try clicking on the sibling text lines. The input does not lose focus.

The only solution I've found is extremely hacky: I add a click binding to almost all elements that make sure that the previous element loses focus. It would be great to have hasFocus working as intended in knockout-sortable, the way it does in regular knockout.

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

1 participant