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

Event modifier which enables text selection on focus #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jessegavin
Copy link

I am building a UI for an app where users will want to quickly change number values in a table (like a spreadsheet). It would be much better in this case to have the entire contents of the input selected on focus.

This pull request adds an event modifier v-focus.select='expression' which does just that.

@feload
Copy link

feload commented Aug 29, 2017

Yes, yes, yes!! Please accept this pull request :)

@jessegavin
Copy link
Author

@simplesmiler any thoughts on this PR?

@DaveSweeton
Copy link

@simplesmiler I'd also like this feature!

@shepelevstas
Copy link

Does it allow to use it like this: v-focus.lazy.select="true"?

@jessegavin
Copy link
Author

@shepelevstas yes, that's how I have been using it.

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

Successfully merging this pull request may close these issues.

None yet

4 participants