Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
Fixes #3669
  • Loading branch information
jasongrout authored and maartenbreddels committed Jan 18, 2023
1 parent 9fd4c30 commit e1c4664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ipywidgets/ipywidgets/widgets/interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def __init__(self, __interact_f, __options={}, **kwargs):
# invoke execution.
for w in self.kwargs_widgets:
if isinstance(w, Text):
w.on_submit(self.update)
w.continuous_update = False
w.observe(self.update, names='value')
else:
for widget in self.kwargs_widgets:
widget.observe(self.update, names='value')
Expand Down

0 comments on commit e1c4664

Please sign in to comment.