-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(slider): fixed the onEnd event to the correct one #1100
Conversation
🦋 Changeset detectedLatest commit: 2911003 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
Собрана новая демка. |
а тут же видно, что событие end не вызывается когда переместили ползунок стрелками на клавиатуре или тапом в слайдере. Screen.Recording.2024-02-09.at.12.31.57.mov |
Проблема в том, что и start тоже не вызывается. Будет странно, что onEnd вызывается, а onStart нет |
какие тогда есть предложения? для наших задач нужен доступ к событию change ) но название пропсы onChange уже занято ) |
Можем попробовать рефку дать для подключения к инстансу noUI |
Собрана новая демка. |
но событие
|
@jkikksa да, давай так сделаем. Только я бы не удалял onStart, а пометил deprecated сначала |
.changeset/fresh-lamps-check.md
Outdated
'@alfalab/core-components-slider': patch | ||
--- | ||
|
||
fix(slider): fixed the onEnd event to the correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут для ченджлога, надо по-русски написать
f2733a0
to
2911003
Compare
Собрана новая демка. |
https://refreshless.com/nouislider/events-callbacks/
Судя по описанию событий в noUiSlider корректнее использовать событие
change
вместоend
для обработки события окончания перетаскивания ползунка