Skip to content

fix(bottom-sheet): скачок при динамической смене magneticAreas [DS-15042] version:48#2056

Open
dHIM24 wants to merge 3 commits intoversion/48from
DS-15042-48
Open

fix(bottom-sheet): скачок при динамической смене magneticAreas [DS-15042] version:48#2056
dHIM24 wants to merge 3 commits intoversion/48from
DS-15042-48

Conversation

@dHIM24
Copy link
Contributor

@dHIM24 dHIM24 commented Feb 5, 2026

BottomSheet
  • Исправлен визуальный скачок шторки при динамической смене magneticAreasProp (например, skeleton → content).
  • При изменении пропа временно отключается CSS transition для мгновенного перехода на новую позицию.

Чек лист

  • Задача сформулирована и описана в JIRA
  • В названии ветки есть айдишник задачи в JIRA (fix/DS-1234), ссылку прикреплять не надо
  • У реквеста осмысленное название feat(...) или fix(...) по conventional commits (https://www.conventionalcommits.org)
  • Код покрыт тестами и протестирован в различных браузерах
  • Добавленные пропсы добавлены в демки и описаны в документации
  • К реквесту добавлен changeset

Если есть визуальные изменения

  • Прикреплено изображение было/стало
2026-02-03.00.51.32.mov

Код для песочницы:

function Example() {
    const [loading, setLoading] = React.useState(true);

    React.useEffect(() => {
        setTimeout(() => {
            setLoading(false);
        }, 2000);
    }, []);

    return (
        <BottomSheet
            open={true}
            onClose={() => null}
            magneticAreas={loading ? undefined : [10, 20, 50, '100%']}
            initialActiveAreaIndex={2}
        >
            {loading ? <div>Loading...</div> : <div>Content</div>}
        </BottomSheet>
    );
}
render(<Example />);

@changeset-bot
Copy link

changeset-bot bot commented Feb 5, 2026

🦋 Changeset detected

Latest commit: 45ce7c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@alfalab/core-components-bottom-sheet Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-select Patch
@alfalab/core-components-tooltip Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-table Patch
@alfalab/core-components-gallery Patch
@alfalab/core-components-tabs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dHIM24 dHIM24 changed the title fix(bottom-sheet): скачок при динамической смене magneticAreas [DS-15… fix(bottom-sheet): скачок при динамической смене magneticAreas [DS-15042] version:48 Feb 5, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Собрана новая демка.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants