Skip to content

Commit

Permalink
fIx: TableActionHandler editorState.editable [Bug] (issue (#717) ) da…
Browse files Browse the repository at this point in the history
…rt format

fIx: Table Icon visible on hover in Editable and causes exception when clicked  [Bug]   (issue (#717) )

* fix:  Check visible Widget TableActionHandler when widget.editorState.editable == true

* Update:  lib/src/editor/block_component/table_block_component/table_action_handler.dart
  • Loading branch information
Taverz committed Mar 5, 2024
1 parent 3037196 commit 9bddb84
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class _TableActionHandlerState extends State<TableActionHandler> {
transform: widget.transform,
height: widget.height,
child: Visibility(
visible: (widget.visible || _visible || _menuShown) && widget.editorState.editable,
visible: (widget.visible || _visible || _menuShown) &&
widget.editorState.editable,

Check warning on line 47 in lib/src/editor/block_component/table_block_component/table_action_handler.dart

View check run for this annotation

Codecov / codecov/patch

lib/src/editor/block_component/table_block_component/table_action_handler.dart#L47

Added line #L47 was not covered by tests
child: MouseRegion(
onEnter: (_) => setState(() => _visible = true),
onExit: (_) => setState(() => _visible = false),
Expand Down

0 comments on commit 9bddb84

Please sign in to comment.