Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Dec 27, 2024
1 parent a856c4f commit a0a5685
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ export function FontSizeToolbarButton() {
handleInputChange();
}}
onChange={(e) => setInputValue(e.target.value)}
onFocus={(e) => {
onFocus={() => {
setIsFocused(true);
setInputValue(toUnitLess(cursorFontSize));
e.target.select();
}}
onKeyDown={(e) => {
if (e.key === 'Enter') {
Expand Down

0 comments on commit a0a5685

Please sign in to comment.