Skip to content

Commit

Permalink
chore(QDialog): simplify "position" validator declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed May 3, 2024
1 parent b7ba034 commit ae66503
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/dialog/QDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default createComponent({
position: {
type: String,
default: 'standard',
validator: val => (val === 'standard' || [ 'top', 'bottom', 'left', 'right' ].includes(val))
validator: val => [ 'standard', 'top', 'bottom', 'left', 'right' ].includes(val)
}
},

Expand Down

0 comments on commit ae66503

Please sign in to comment.