Skip to content

Commit

Permalink
Update selectInput to select on "Name"
Browse files Browse the repository at this point in the history
Signed-off-by: Curtis Werstuik <[email protected]>
  • Loading branch information
cwerstuik authored Sep 24, 2023
1 parent a6c0a1f commit 0aa8f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ContactDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,10 @@ export default {
},

/**
* Select the text in the input if it is still set to 'new Contact'
* Select the text in the input if it is still set to 'Name'
*/
selectInput() {
if (this.$refs.fullname && this.$refs.fullname.value === t('contacts', 'New contact')) {
if (this.$refs.fullname && this.$refs.fullname.value === t('contacts', 'Name')) {
this.$refs.fullname.select()
}
},
Expand Down

0 comments on commit 0aa8f49

Please sign in to comment.