fix: color picker hex unfocus on web (#1934)

pull/1938/head v9.4.5
geronimol 10 months ago committed by GitHub
parent 2d78e0985d
commit 126921f2c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      lib/src/widgets/toolbar/buttons/color/color_dialog.dart

@ -54,6 +54,7 @@ class ColorPickerDialogState extends State<ColorPickerDialog> {
actions: [ actions: [
TextButton( TextButton(
onPressed: () { onPressed: () {
widget.onRequestChangeColor(context, selectedColor);
Navigator.of(context).pop(); Navigator.of(context).pop();
}, },
child: Text(context.loc.ok)), child: Text(context.loc.ok)),
@ -123,8 +124,6 @@ class ColorPickerDialogState extends State<ColorPickerDialog> {
controller: hexController, controller: hexController,
onChanged: (value) { onChanged: (value) {
selectedColor = hexToColor(value); selectedColor = hexToColor(value);
widget.onRequestChangeColor(context, selectedColor);
colorBoxSetState(() {}); colorBoxSetState(() {});
}, },
decoration: InputDecoration( decoration: InputDecoration(

Loading…
Cancel
Save