mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Merge pull request #6000 from AlbertHilb/FloatWidgetValueFix
Validate initial value of "_BoundedFloatWidget".
This commit is contained in:
commit
c9961b44b6
@ -33,6 +33,7 @@ class _BoundedFloatWidget(_FloatWidget):
|
||||
def __init__(self, *pargs, **kwargs):
|
||||
"""Constructor"""
|
||||
DOMWidget.__init__(self, *pargs, **kwargs)
|
||||
self._validate('value', None, self.value)
|
||||
self.on_trait_change(self._validate, ['value', 'min', 'max'])
|
||||
|
||||
def _validate(self, name, old, new):
|
||||
|
Loading…
Reference in New Issue
Block a user