lion/.changeset
Danny Moerkerke 5b8d655f10
Fix/dialog scroll to top ios (#1957)
* fix: possible fix for iOS focus issue WIP

* chore: added test for elementToFocusAfterHide WIP

* chore: dialog tests for elementToFocusAFterHide

* chore: added test to assert element specified in `elementToFocusAfterHide` config key of lion-dialog is scrolled into the viewport

* chore: - added test to assert that element specified in dialog config key `elementToFocusAfterHide` is not focused when the dialog is closed if the user deliberately moved focus to another element while the dialog was open
       - added changeset

* chore: - removed unneeded button
       - renamed this.__activeElement to this.__activeElementRightBeforeHide in OverlayController.js
       - set this.__activeElementRightBeforeHide to this.contentNode.getRootNode().activeElement instead of document.activeElement

* chore: moved test to assert if element specified in dialog config key elementToFocusAfterHide is in viewport when dialog is closed to OverlayController.test.js

---------

Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
2023-04-13 15:04:23 +02:00
..
brown-radios-boil.md Fix/dialog scroll to top ios (#1957) 2023-04-13 15:04:23 +02:00
config.json chore: migrate to changesets and github actions 2020-07-27 17:18:37 +02:00
lemon-experts-change.md feat(@lion/ui): add _previousIconTemplate and _nextIconTemplate to LionCalendar (#1954) 2023-04-03 17:00:30 +02:00
silver-lizards-repeat.md fix(combobox): update option list after clear 2023-03-22 13:07:34 +01:00