When inputting more than 2 characters at a time, the toolbar style change will be invalid. #1864
Closed
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Flutter Quill version
9.3.11
Steps to reproduce
Expected results
No matter how much text is entered, the toolbar switching style will take effect
Actual results
When more than two characters are entered at one time, the switching style will not take effect.
Code sample
After a day of hard work, I have found the code location that caused the bug.
This judgment condition will result in that when the user inputs more than 2 words, the toggledStyle cannot be obtained.
You should distinguish between user pasting and candidate input. The pasted content has styles, while the candidate content in the input method has no style.
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
[Paste your logs here]
The text was updated successfully, but these errors were encountered: