fix: slider crash on some platforms
This commit is contained in:
parent
28966739f6
commit
020e85906d
1 changed files with 4 additions and 2 deletions
|
|
@ -91,8 +91,10 @@ export const sliderPlugin = ViewPlugin.fromClass(
|
||||||
while (iterator.value) {
|
while (iterator.value) {
|
||||||
// when the widgets are moved, we need to tell the dom node the current position
|
// when the widgets are moved, we need to tell the dom node the current position
|
||||||
// this is important because the updateSliderValue function has to work with the dom node
|
// this is important because the updateSliderValue function has to work with the dom node
|
||||||
iterator.value.widget.slider.from = iterator.from;
|
if (iterator.value?.widget?.slider) {
|
||||||
iterator.value.widget.slider.to = iterator.to;
|
iterator.value.widget.slider.from = iterator.from;
|
||||||
|
iterator.value.widget.slider.to = iterator.to;
|
||||||
|
}
|
||||||
iterator.next();
|
iterator.next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue