caseyryan/flutter_multi_formatter

Unfocuser has a bug: recklicking in an already focused text field.

Closed this issue · 5 comments

Hi,

I tried to use your unfocouser for a website.
If I click into a text filed. It get's focused. If I click into a white area next to it, it get's unfocused.
But If I click again into a already focused textfield, it get's also unfocused. User did not expect that.
Example use case:
Open the website, oh, I need to copy and paste something in this text field. Click in it.
Switch the window and copy something. Return and click again into the already selected text field.
Press Ctrl V.
Nothing get's pasted because the text field is now defocused.

Thats weird. I'll take a look at this when I have time. Thanks for reporting

I've just tested it everywhere. In mobile and web. I did it exactly as you described. I'm 100% there is no bug like this. Everything works correctly.
What version of flutter do you use? Can you also provide some example code of the page I can reproduce the bug?
All I can imagine is that there is some bug related to a particular version of Flutter which might work differently with a FocusScope. I tested it with Flutter 2.0.2 and 2.2.1 stable releases.

I'm closing the issue now as I could not reproduce it

They fiexed it in flutter. So no need for this unfocuser anymore. Problem solved :)

Unfocuser is used for different purposes. I'm glad the problem is resolved