Skip to content

Commit

Permalink
Merge branch 'master' into STCOM-1380
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 authored Nov 13, 2024
2 parents ca26f96 + 2f43c1c commit b3edd21
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* `<RepeatableField>` - switch to MutationObserver to resolve focus-management issues. Refs STCOM-1372.
* Bump `stripes-react-hotkeys` to `v3.2.0` for compatibility with `findDOMNode()` changes. STCOM-1343.
* Pin `currency-codes` to `v2.1.0` to avoid duplicate entries in `v2.2.0`. Refs STCOM-1379.
* Wrap `<Selection>` in full-width div. Refs STCOM-1332.
* Assign `<Modal>`'s exit key handler to Modal's element rather than `document`. refs STCOM-1382.

## [12.2.0](https://github.com/folio-org/stripes-components/tree/v12.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.1.0...v12.2.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/Modal/WrappingElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const WrappingElement = forwardRef(({
focusTrapRef.current.activate();
ATTrap.apply();
}
keyDownHandlerRef.current = listen(document, 'keydown', keyDownHandler);
keyDownHandlerRef.current = listen(modalElementRef.current, 'keydown', keyDownHandler);
focusHandlerRef.current = listen(document, 'focus', enforceFocusTimeout, true);
onOpen();
}
Expand Down
5 changes: 5 additions & 0 deletions lib/Selection/Selection.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@


.selectionOuter {
width: 100%;
position: relative;
}

.selectionRoot {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Selection/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ const Selection = ({
/* eslint-enable react-hooks/exhaustive-deps */

return (
<div>
<div className={css.selectionOuter}>
{label && (
<Label
{...getLabelProps({
Expand Down

0 comments on commit b3edd21

Please sign in to comment.