Skip to content

Commit

Permalink
feat: allow an attr "pattern" to change using "merge_patch_parent_pro…
Browse files Browse the repository at this point in the history
…perties"
  • Loading branch information
prigaux committed Sep 11, 2024
1 parent 7340dd5 commit 1bafa48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/directives/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Vue.component('input-with-validity', {
value: 'on_value_set',
min(v) { this._attrUpdated('min', v) },
max(v) { this._attrUpdated('max', v) },
pattern(v) { this._attrUpdated('pattern', v) },
sameAs(v) { this._attrUpdated('pattern', Helpers.escapeRegexp(v)) },
},
methods: {
Expand Down

0 comments on commit 1bafa48

Please sign in to comment.