Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Mar 9, 2022
1 parent cbf0bef commit ee4336a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/number-control/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export function NumberControl(
}

/**
* Handles commit (ENTER key press or on blur if isPressEnterToChange)
* Handles commit (ENTER key press or blur)
*/
if (
type === inputControlActionTypes.PRESS_ENTER ||
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/number-control/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ describe( 'NumberControl', () => {
// After blur, value is clamped
expect( input.value ).toBe( '4' );

// After the blur, the `onChange` callback fires asynchronously.
await waitFor( () => {
expect( spy ).toHaveBeenCalledTimes( 2 );
expect( spy ).toHaveBeenNthCalledWith( 1, '1' );
Expand Down

0 comments on commit ee4336a

Please sign in to comment.