You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dropdown Knobs crash the storybook if an invalid value is typed.
Steps To Reproduce
Add a list knob to your story, (The TextScale is used as an example)
Type into the box any invalid value.
Press enter
Bang
════════ Exception caught by widgets ═══════════════════════════════════════════
The following _TypeError was thrown while calling onEditingComplete for TextInputAction.done:
Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 ListField.toWidget. (package:widgetbook/src/fields/list_field.dart:41:63)
list_field.dart:41 #1 _DropdownMenuState.build.. (package:flutter/src/material/dropdown_menu.dart:695:36)
dropdown_menu.dart:695 #2 EditableTextState._finalizeEditing (package:flutter/src/widgets/editable_text.dart:3277:34)
editable_text.dart:3277 #3 EditableTextState.performAction (package:flutter/src/widgets/editable_text.dart:3140:9)
editable_text.dart:31
Expected Behavior
The app does not crash, and instead rejects the input in some way.
The text was updated successfully, but these errors were encountered:
The DropdownMenu has search enabled, which allows users to type any input. If the user types something that doesn't match an existing item, value is null, leading to a null pointer issue.
Fixeswidgetbook#1151
Description
Dropdown Knobs crash the storybook if an invalid value is typed.
Steps To Reproduce
Press enter
Bang
Expected Behavior
The app does not crash, and instead rejects the input in some way.
The text was updated successfully, but these errors were encountered: