diff --git a/CHANGELOG.md b/CHANGELOG.md index e60a9f475..a952f8650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ * Correctly apply supplied `ariaLabelledby` prop in `. Refs FAT-14783. * Add translation for `` dropdown trigger. Refs FAT-14783. * Apply correct widths for ``. Refs STCOM-1308. +* Pass the `isCursorAtEnd` property to the textarea props in the `SearchField` component. Refs STCOM-1307. ## [12.1.0](https://github.com/folio-org/stripes-components/tree/v12.1.0) (2024-03-12) [Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.0.0...v12.1.0) diff --git a/lib/SearchField/SearchField.js b/lib/SearchField/SearchField.js index cb0654932..ea4e02645 100644 --- a/lib/SearchField/SearchField.js +++ b/lib/SearchField/SearchField.js @@ -96,6 +96,7 @@ const SearchField = (props) => { newLineOnShiftEnter = false, inputRef, indexRef, + isCursorAtEnd = false, ...rest } = props; @@ -175,6 +176,7 @@ const SearchField = (props) => { onSubmitSearch, newLineOnShiftEnter, rows: TEXTAREA_DEFAULT_HEIGHT, + isCursorAtEnd, }; return {