This repository was archived by the owner on Nov 3, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can handle the display of the placeholder using the
placeholderCharacter
prop, or do you see any case where we pass it and don't want to display it? Also, I would rename the prop to onlyplaceholder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @drac94, if I tell you the idea of managing the "show Placeholder" variable to hide and show the placeholder is born from the need of the client, some companies manage that their input forms have a mask while others prefer that they remain without a mask , so the idea is that the package allows to do that configuration in a quite simple way, I don't know if I made myself understood hehe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the name of the variable, if it is true, it is a better placeholder, the one that locates it is too verbose
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I understand the motivation for this feature and I can see how it is valuable, but in terms of implementation, we can just have a
placeholder
prop and nothing else, if it is set, we show the placeholder otherwise we don't. Basically this:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's perfect!!