@cloud-ru/ds-bottom-sheet 2.1.0 → 2.1.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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 2.1.1 (2026-11-04)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **FF-9117:** close top bottom-sheet when several are opened ([bab944e](https://github.com/cloud-ru-tech/snack-v2/commit/bab944e09d578721be39bf1669fddbcf2c06bd0a))
11
+
6
12
  # 2.1.0 (2026-11-03)
7
13
 
8
14
  ### Features
@@ -143,6 +143,10 @@ function useDragEngine({ snapPoints, defaultSnapIndex = 0, snapIndex: snapIndexP
143
143
  const onPointerDown = (0, react_1.useCallback)((event) => {
144
144
  if (!swipeEnabled || !isActive)
145
145
  return;
146
+ // События вложенного React-портала всплывают в родительский sheet, хотя его DOM
147
+ // не содержит цель жеста. Такой жест принадлежит только вложенной панели.
148
+ if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target))
149
+ return;
146
150
  if (!event.isPrimary || pointerId.current !== null)
147
151
  return;
148
152
  if (event.pointerType === 'mouse' && event.button !== 0)
@@ -140,6 +140,10 @@ export function useDragEngine({ snapPoints, defaultSnapIndex = 0, snapIndex: sna
140
140
  const onPointerDown = useCallback((event) => {
141
141
  if (!swipeEnabled || !isActive)
142
142
  return;
143
+ // События вложенного React-портала всплывают в родительский sheet, хотя его DOM
144
+ // не содержит цель жеста. Такой жест принадлежит только вложенной панели.
145
+ if (!(event.target instanceof Node) || !event.currentTarget.contains(event.target))
146
+ return;
143
147
  if (!event.isPrimary || pointerId.current !== null)
144
148
  return;
145
149
  if (event.pointerType === 'mouse' && event.button !== 0)