Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] _isFirstCreation from #94 causing duplicate field creations #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VanIseghemThomas
Copy link

Tested and fixed on iOS.

Adding logs in Start, OnEnable and InitProcess reveals that in some cases InitProcess is called twice. Thus resulting in CreateNativeEdit also being called twice. Moving the input field position also reveals that multiple input fields where in fact created.

How I discovered / how to reproduce:

  • Create scene with input field + Some script that is able to move the input field (for me on keyboard open it moves up)
  • Open the app -> no problems
  • Swipe down from top -> disable WiFi
  • Close app (completely by swiping it away in active apps)
  • Open the app again
  • Duplicate fields pop up

This is a strange flow but the only one I can find currently to reproduce the issue and verify it's fixed.

…ing duplicate field creations

Adding logs in Start, OnEnable and InitProcess reveals that in some cases InitProcess is called twice. Thus resulting in CreateNativeEdit also being called twice.
@VanIseghemThomas
Copy link
Author

VanIseghemThomas commented Jun 24, 2024

Unrelated, there is also an issue with the application focus causing the input fields to go readonly and disable text. Have not looked into it yet since I patched this on the app side of things for my project. Thought it would be good to let you guys know.

Update: Created PR for this #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant