Skip to content

Commit a2aaee6

Browse files
authored
style(onBackValue): show that the element is selected
1 parent 84dfcbe commit a2aaee6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

angular-code-input/src/lib/code-input.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ export class CodeInputComponent implements AfterViewInit, OnInit, OnChanges, OnD
412412
const isEmpty = this.isEmpty(value);
413413
const valueClassCSS = 'has-value';
414414
const emptyClassCSS = 'empty';
415+
416+
input.select();
417+
415418
if (isEmpty) {
416419
input.value = '';
417420
input.classList.remove(valueClassCSS);

0 commit comments

Comments
 (0)