diff --git a/packages/components/src/number-control/index.js b/packages/components/src/number-control/index.js index 5068715190c952..933653694927c8 100644 --- a/packages/components/src/number-control/index.js +++ b/packages/components/src/number-control/index.js @@ -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 || diff --git a/packages/components/src/number-control/test/index.js b/packages/components/src/number-control/test/index.js index 96c6afbd5aa963..669ff9a9af29c6 100644 --- a/packages/components/src/number-control/test/index.js +++ b/packages/components/src/number-control/test/index.js @@ -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' );