Added functionality such that a function pass through by "onControlEnter" (for example a submission function) can be executed when CTRL+ENTER are clicked whilst within the textarea.
Implemented a jest test to verify that the component "adds Ctrl + Enter keydown event listener on mount and removes on unmount".
QA
Storybook
To see rendered examples of all react-components, run:
yarn start
QA in your project
from react-components run:
yarn build
npm pack
Install the resulting tarball in your project with:
yarn add <path-to-tarball>
QA steps
Navigate to the textarea component.
Pres CTRL and Enter at the same time whilst within the component, and note an "alert" function occur.
Percy steps
List any expected visual change in Percy, or write something like "No visual changes expected" if none is expected.
…ithin a text area.
Done
QA
Storybook
To see rendered examples of all react-components, run:
QA in your project
from
react-components
run:Install the resulting tarball in your project with:
QA steps
Percy steps
Fixes
Fixes: # .