-
Notifications
You must be signed in to change notification settings - Fork 937
Open
Labels
bugSomething isn't workingSomething isn't workingminorMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall functionMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall function
Description
Have you checked for an existing issue?
- I have searched the existing issues
Flutter Quill Version
11.0
Steps to Reproduce
- start an empty quill editor.
- set cursor/caret in active white area
- press for example the "B" (bolt) button.
- press on letter on the keyboard. (H) for example
the function of the listener will execute twice...
textEditorController.changes.listen((DocChange event) {
// will exec. 2 times...
});
these are the delta's
{"before":[{"insert":"H\n"}],"change":[{"retain":1,"attributes":{"bold":true}}]},
{"before":[{"insert":"H\n"}],"change":[{"retain":1,"attributes":{"bold":true}}]}
Expected results
triggered only once with correct docChange
so only one entry:
{"before":[{"insert":"\n"}],"change":[{"insert": "H","attributes":{"bold":true}}]}
Actual results
see above
Additional Context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingminorMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall functionMinimal impact or cosmetic issue. Can be resolved at a later time without affecting overall function