Context Menu items not executing onPressed callbacks when contextMenuBuilder parameter is supplied in QuillEditor #1674
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Flutter Quill version
9.2.2
Steps to reproduce
I supplied the contextMenuBuilder parameter of a QuillEditor so I can create my own custom menu, the problem is all callbacks were disabled for some reason when I did this.
Expected results
I expected all menu items to work as intended
Actual results
Did not execute onPressed callbacks
Code sample
Code sample
contextMenuBuilder: (context, state) {
List<ContextMenuButtonItem> btnItems =
List.from(state.contextMenuButtonItems);
return AdaptiveTextSelectionToolbar.buttonItems(
buttonItems: btnItems,
anchors: state.contextMenuAnchors,
);
},
I passed this as a parameter in a Quill Editor. This should just give me back all the original context menu buttons supplied by Quill. But for some reason, they don't work now. As well as other buttons that I add in the context menu.
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]