Skip to content

Commit

Permalink
fix: priority for placeholder of optional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvanshus-crest committed May 31, 2021
1 parent 12a7e78 commit 405db62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/main/webapp/components/ControlWrapper.jsx
Expand Up @@ -35,7 +35,7 @@ class ControlWrapper extends React.PureComponent {
: null;
// Add 'optional' placeholder for optional field
this.options = this.props.entity.options;
if (!this.props.entity.required) {
if (!this.props.entity.required && !this.options?.placeholder) {
this.options = {
...this.options,
placeholder: 'optional',
Expand Down

0 comments on commit 405db62

Please sign in to comment.