mirror of
https://github.com/wassname/baukit.git
synced 2026-06-27 17:14:53 +08:00
Range should have float values.
This commit is contained in:
@@ -636,7 +636,7 @@ class Range(Widget):
|
||||
# but this is pretty slow on google colab.
|
||||
return minify('''
|
||||
element.addEventListener('change', (e) => {
|
||||
model.set('value', element.value);
|
||||
model.set('value', parseFloat(element.value));
|
||||
});
|
||||
model.on('value', (e) => {
|
||||
if (!element.matches(':active')) {
|
||||
|
||||
Reference in New Issue
Block a user