mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
8c9287d505
commit
aa272fb404
106 changed files with 1733 additions and 554 deletions
|
@ -80,7 +80,8 @@ is separate from validation, and `allowed-pattern` does not affect how the input
|
|||
* Regular expression to match valid input characters.
|
||||
*/
|
||||
allowedPattern: {
|
||||
type: String
|
||||
type: String,
|
||||
observer: "_allowedPatternChanged"
|
||||
},
|
||||
|
||||
_previousValidInput: {
|
||||
|
@ -131,6 +132,11 @@ is separate from validation, and `allowed-pattern` does not affect how the input
|
|||
this.fire('bind-value-changed', {value: this.bindValue});
|
||||
},
|
||||
|
||||
_allowedPatternChanged: function() {
|
||||
// Force to prevent invalid input when an `allowed-pattern` is set
|
||||
this.preventInvalidInput = this.allowedPattern ? true : false;
|
||||
},
|
||||
|
||||
_onInput: function() {
|
||||
// Need to validate each of the characters pasted if they haven't
|
||||
// been validated inside `_onKeypress` already.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue