Skip to content

Event modifier which enables text selection on focus#11

Open
jessegavin wants to merge 1 commit into
simplesmiler:masterfrom
jessegavin:master
Open

Event modifier which enables text selection on focus#11
jessegavin wants to merge 1 commit into
simplesmiler:masterfrom
jessegavin:master

Conversation

@jessegavin
Copy link
Copy Markdown

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
Copy Markdown

feload commented Aug 29, 2017

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

@jessegavin
Copy link
Copy Markdown
Author

@simplesmiler any thoughts on this PR?

@DaveSweeton
Copy link
Copy Markdown

@simplesmiler I'd also like this feature!

@shepelevstas
Copy link
Copy Markdown

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

@jessegavin
Copy link
Copy Markdown
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.

4 participants