Fix blur/focus issue on Android phones #104
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix for Android devices getting stuck in a focus/blur loop (or just not letting the user close the keyboard) when column filters are present.
I'm not an Apple fanboy so I do not know if this affects iOS but I would assume so.
How to reproduce issue
This PR fixes this problem. It seems that the code does a force redraw when the screen size changes. When the soft keyboard pops up it actually triggers a page size change which then causes the fixedHeader to redraw causing the focus/blur stuff to happen (because the fixedHeader tries to maintain your input focus).
I don't know why we do a forced change inside the scroll event. It actually runs far better on my phone without it (since my phone doesn't have to redraw the header over and over while scrolling around).
I want to make sure I don't break things for anyone else. If someone knows why we do a
forcedChange
please do let me know why and if this will cause problems with it. Otherwise this should be good to go.