Skip to content

Fix: SfTextInputLayout hint text was not shown after modal page is close and open again#353

Merged
PaulAndersonS merged 1 commit into
mainfrom
Resolved_Hint_Text_Hide_Issue
Apr 30, 2026
Merged

Fix: SfTextInputLayout hint text was not shown after modal page is close and open again#353
PaulAndersonS merged 1 commit into
mainfrom
Resolved_Hint_Text_Hide_Issue

Conversation

@TameemAnsari-SF4702
Copy link
Copy Markdown
Collaborator

Root Cause of the Issue

When a modal page is dismissed on iOS, OnHandlerChanged fires with Handler == null, which clears HintLabelStyle, HelperLabelStyle, and ErrorLabelStyle to null. When the modal reopens and the handler reconnects, these styles remain null. DrawHintText has a HintLabelStyle != null guard, so the hint text is never rendered.

Description of Change

Removed the explicit null assignments for HintLabelStyle, HelperLabelStyle, and ErrorLabelStyle in OnHandlerChanged. These properties already handle nullification in their respective Unwired events. With this change, the styles persist correctly across modal open → close → reopen cycles, ensuring that hint text and related labels render as expected.

Issues Fixed

Fixes #329

Screenshots

Before:

BeforeHintText.mp4

After:

AfterHintText.mp4

@PaulAndersonS PaulAndersonS merged commit fb3d3cd into main Apr 30, 2026
4 checks passed
@PaulAndersonS PaulAndersonS added this to the v1.0.10 milestone Apr 30, 2026
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.

ios SfTextInputLayout Hint Text will not be shown after modal page get close and open again

2 participants