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

subtask: fixing the literal-type constraint in the message prop for Input component #613

Closed
wants to merge 1 commit into from

Conversation

joycexjiang
Copy link
Contributor

@joycexjiang joycexjiang commented Jan 3, 2025

Context

working on APP-6609 of removing restricted text input across App and instead of the toggle to show the error message, we want to show the error message below the Input. see comment thread here. While working on this, I ran into errors due to the message prop in the Input component being restricted to an empty string. This fix should ensure that validation errors are displayed as intended in the UI

Changes

updated export let message to allow dynamic error message strings instead of being constrained to an empty literal type.

…splay the error message below the input as intended
Copy link
Member

@micheal-parks micheal-parks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a change in the legacy package, where is this used in app? (I thought it was pretty much all removed)

@joycexjiang joycexjiang closed this Jan 6, 2025
@joycexjiang joycexjiang deleted the fix-input-error-message branch January 6, 2025 17:13
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.

2 participants