singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.52k stars 807 forks source link

Enter Chinese in the editor, and click other blank areas to crash when you do not confirm #2135

Open Winstonokk opened 3 weeks ago

Winstonokk commented 3 weeks ago

Is there an existing issue for this?

Flutter Quill version

flutter_quill_extensions : 10.4.0

Steps to reproduce

1、Enter Chinese in the edit area, but do not confirm 2、Click on the blank space after the pre-entered text

Expected results

Don't crash

Actual results

crash

Code sample

just use the flutter_quill demo on iPad

Additional Context

https://github.com/user-attachments/assets/63e60d94-470e-4a00-8fdf-bc512b9b4d03

Winstonokk commented 3 weeks ago

the debug console log: Terminating app due to uncaught exception 'NSRangeException', reason: ' -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray' *** First throw call stack: (0x195f24cb4 0x18f0443d0 0x196033bbc 0x1042fe754 0x198952d34 0x19803f6b8 0x19803ec4c 0x19803cb8c 0x198948f98 0x19807e520 0x198082d94 0x198082054 0x198080340 0x1980c9018 0x1983ce5fc 0x195fee128 0x195ffa7b4 0x195f7f5e8 0x195f950d4 0x195f9a3ec 0x1d0b2f35c 0x1983276e8 0x19832734c 0x10065c8d4 0x1b5462dec) libc++abi: terminating due to uncaught exception of type NSException

Winstonokk commented 2 weeks ago

please help me, thanks very much @singerdmx