@via-profit/ui-kit 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Все заметные изменения пакета `@via-profit/ui-kit`. Формат основан на [Keep a Changelog](https://keepachangelog.com/ru/1.1.0/), версии следуют [семантическому версионированию](https://semver.org/lang/ru/).
|
|
4
4
|
|
|
5
|
+
## 0.9.1 — 2026-10-19
|
|
6
|
+
|
|
7
|
+
### Исправлено
|
|
8
|
+
|
|
9
|
+
- **Modal** (Dialog, Drawer, MessageBox, ConfirmBox): при открытии окно больше не уводит фокус с поля, которое содержимое окна сфокусировало само (например, поле поиска), на следующий элемент.
|
|
10
|
+
|
|
5
11
|
## 0.9.0 — 2026-10-19
|
|
6
12
|
|
|
7
13
|
### Добавлено
|
|
@@ -50,7 +50,9 @@ const ModalWrapper = props => {
|
|
|
50
50
|
const container = containerRef.current;
|
|
51
51
|
if (isOpen && container) {
|
|
52
52
|
TabManager_1.default.registerContainer(container);
|
|
53
|
-
|
|
53
|
+
// the content may focus its field itself (the effects of the children run first):
|
|
54
|
+
// the modal must not move the focus away from it to the next element
|
|
55
|
+
if (autofocus && !container.contains(document.activeElement)) {
|
|
54
56
|
TabManager_1.default.focusNext();
|
|
55
57
|
}
|
|
56
58
|
}
|
|
@@ -45,7 +45,9 @@ const ModalWrapper = props => {
|
|
|
45
45
|
const container = containerRef.current;
|
|
46
46
|
if (isOpen && container) {
|
|
47
47
|
TabManager.registerContainer(container);
|
|
48
|
-
|
|
48
|
+
// the content may focus its field itself (the effects of the children run first):
|
|
49
|
+
// the modal must not move the focus away from it to the next element
|
|
50
|
+
if (autofocus && !container.contains(document.activeElement)) {
|
|
49
51
|
TabManager.focusNext();
|
|
50
52
|
}
|
|
51
53
|
}
|