Skip to content

Commit

Permalink
fix(form-input): unable to access allowed characters
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed Jan 4, 2023
1 parent 1e720b9 commit 0d7a506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/form-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ const invalidCharactersMessage = computed(() => {
}
})
const invalidCharactersRegex = computed(() => {
if (this.allowedCharactersSupersetPattern) {
return `[^(${this.allowedCharactersSupersetPattern})]`
if (props.allowedCharactersSupersetPattern) {
return `[^(${props.allowedCharactersSupersetPattern})]`
} else {
return null
}
Expand Down

0 comments on commit 0d7a506

Please sign in to comment.