Skip to content

Commit

Permalink
HT-603:Fixed validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuwa-Hub committed Oct 25, 2024
1 parent 60b6c07 commit 4fabb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/src/core/components/Input/PasswordInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineComponent({
strength: {
type: Number,
default: -1,
validator: (value: number) => [1, 2, 3, 4, 5].includes(value),
validator: (value: number) => [-1, 0, 1, 2, 3, 4, 5].includes(value),
},
hasError: {
type: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
},
},
strength: {
control: {type: 'select', options: [0, 1, 2, 3, 4, 5]},
control: {type: 'select', options: [-1, 0, 1, 2, 3, 4, 5]},
table: {
type: {summary: 'Set the strength of the password'},
},
Expand Down

0 comments on commit 4fabb9e

Please sign in to comment.