Skip to content

Commit

Permalink
Rehabilitate drag gesture in LineHeightControl (#38930)
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman authored Feb 23, 2022
1 parent 87a7fbe commit b837704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function LineHeightControl( {
// For example, Firefox emits an input event with inputType="insertReplacementText"
// on spin button clicks, while other browsers do not even emit an input event.
const wasTypedOrPasted = [ 'insertText', 'insertFromPaste' ].includes(
action.payload.event.nativeEvent.inputType
action.payload.event.nativeEvent?.inputType
);
state.value = adjustNextValue( state.value, wasTypedOrPasted );
return state;
Expand Down

0 comments on commit b837704

Please sign in to comment.