Skip to content

fix: state change emitting with default values improvement - #251

Merged
exploIF merged 4 commits into
@exploif/fix-default-valuesfrom
@szydlovsky/fix-default-value-state-emitting
Nov 17, 2025
Merged

exploIF merged 4 commits into
@exploif/fix-default-valuesfrom
@szydlovsky/fix-default-value-state-emitting

Conversation

@szydlovsky

Copy link
Copy Markdown
Collaborator

Fixes: #237
Turns out eventEmitter isn't available from the very beginning, but the iOS code was remembering recently active styles even if no state change event was emitted. This way, when the event emitter was finally available, no state change event was emitted because recently active styles were exactly same (even though no event went out).
Except that, I added all lifecycle callbacks (anyTextMayHaveBeenModified that e.g. runs the state change event) to the didMoveToWindow because it seems like the event emitter is defined then.
The issue was;defaultValue was set but its state changes emitted only when some change was done to an input (and not on focus or when eventEmitter is available). The PR fixes both scenarios.

@szydlovsky
szydlovsky requested a review from exploIF November 14, 2025 13:40
@szydlovsky
szydlovsky changed the base branch from main to @exploif/fix-default-values November 14, 2025 13:47
@szydlovsky
szydlovsky changed the base branch from @exploif/fix-default-values to main November 14, 2025 13:55
@szydlovsky
szydlovsky changed the base branch from main to @exploif/fix-default-values November 14, 2025 13:55
@exploIF
exploIF merged commit a662c35 into @exploif/fix-default-values Nov 17, 2025
@exploIF
exploIF deleted the @szydlovsky/fix-default-value-state-emitting branch November 17, 2025 14:51
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.

BUG: Style changes emits if the user is not focused on the text field.

2 participants