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 TextField adornments warnings #637

Merged
merged 2 commits into from
Nov 20, 2024
Merged

Fix TextField adornments warnings #637

merged 2 commits into from
Nov 20, 2024

Conversation

Meklo
Copy link
Contributor

@Meklo Meklo commented Nov 14, 2024

Prevents the following warnings :

Warning: React does not recognize the `adornmentText` prop on a DOM element.
Warning: React does not recognize the `adornmentPosition` prop on a DOM element.

By not passing those props only when Field is a TextField instead of a TextFieldWithAdornment

Copy link

sonarcloud bot commented Nov 20, 2024

@dbraquart dbraquart self-requested a review November 20, 2024 17:50
Copy link
Contributor

@dbraquart dbraquart left a comment

Choose a reason for hiding this comment

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

ok "adornment" warnings are gone

@dbraquart dbraquart merged commit eb2ad28 into main Nov 20, 2024
4 checks passed
@dbraquart dbraquart deleted the fix/adornment_warnings branch November 20, 2024 17: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.

2 participants