Skip to content

Commit

Permalink
Select text in input
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Aug 16, 2023
1 parent 73d920b commit 3df9fb0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export class AnnotationForm extends watchMixin(ShadowlessLitElement) {
// Focus the newly shown title input if the user wants to save the annotation.
if (changedProperties.has("saveAnnotation") && this.saveAnnotation) {
this.titleRef.value.focus();
this.titleRef.value.select();
}
}

Expand Down

0 comments on commit 3df9fb0

Please sign in to comment.