lazy-geek/Momento

Can't change selection of the text or the cursor position in editnote page

Closed this issue · 0 comments

Cause

this was definitely caused by #12 , because the selection property of TextEditingController is manually changed whenever the text changes

Steps For Possible Solution

  1. don't change the selection property of TextEditingController
  2. to set the isEdited flag check that the current text is not equal to the initial text , this will fix the issue where the isEdited flag was changed for no reason other than that the user changed the selection in the TextField which notified the TextEditingController Listeners which then modified the isEdited flag.