I have also encountered this before, I think it is in Calendar and Agenda plugin tw-calendar with Mobile frendly agenda page layout
Where I am implementing a EventsCalendarSearchLayout, that have a search bar, here:
My comment was
don’t wrap edit-text widget with set or let, otherwise it will keeps refreshing and auto select all text, cause old chars get deleted.
Not sure why, but I also walkaround it.