fix: color picker hex unfocus on web

pull/1934/head
geronimol 10 months ago
parent 2d78e0985d
commit 1feec8b207
  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