Select all input box text on click

This commit is contained in:
softsimon
2023-07-15 17:47:36 +09:00
parent 992196c91f
commit b39f01471a
2 changed files with 7 additions and 3 deletions

View File

@@ -130,4 +130,8 @@ export class CalculatorComponent implements OnInit {
const result = numStr.match(re);
return result ? result[0] : numStr;
}
selectAll(event): void {
event.target.select();
}
}