Can't change selection of the text or the cursor position in editnote page
Closed this issue · 0 comments
lazy-geek commented
Cause
this was definitely caused by #12 , because the selection
property of TextEditingController
is manually changed whenever the text changes
Steps For Possible Solution
- don't change the
selection
property ofTextEditingController
- to set the
isEdited
flag check that the current text is not equal to the initial text , this will fix the issue where theisEdited
flag was changed for no reason other than that the user changed theselection
in theTextField
which notified theTextEditingController
Listeners which then modified theisEdited
flag.