Skip to content

Commit

Permalink
Fix double style change from entering and blurring (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitenite authored Nov 27, 2024
1 parent 3d094dc commit 9b6cc43
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/studio/src/lib/editor/styles/numberUnit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ export const handleNumberInputKeyDown = (
const newUnit = getDefaultUnit(unitVal);

if (e.key === 'Enter') {
const newValue = parsedValueToString(numberVal, newUnit);
sendStyleUpdate(newValue);
e.currentTarget.blur();
return;
}
Expand Down

0 comments on commit 9b6cc43

Please sign in to comment.