Skip to content

Commit 83dfc41

Browse files
feat: improve range slider focus
1 parent fe391e4 commit 83dfc41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/fields/form_builder_range_slider.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,13 @@ class FormBuilderRangeSlider extends FormBuilderFieldDecoration<RangeValues> {
204204
);
205205
}
206206
}
207+
// TODO: Solve focus issue when Flutter team solve this issue
208+
// https://github.com/flutter/flutter/issues/53958
207209
return Focus(
208210
focusNode: state.effectiveFocusNode,
211+
skipTraversal: true,
212+
canRequestFocus: state.enabled,
213+
debugLabel: 'FormBuilderRangeSlider-$name',
209214
child: InputDecorator(
210215
decoration: state.decoration,
211216
isFocused: state.effectiveFocusNode.hasFocus,

0 commit comments

Comments
 (0)