fixed claim responsibility
gitea/salix/master This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-12-17 13:03:09 +01:00
parent 39a41f9a64
commit 7d47757c64
1 changed files with 15 additions and 0 deletions

View File

@ -6,6 +6,16 @@ export default class Range extends FormInput {
constructor($element, $scope) {
super($element, $scope);
this.input = this.element.querySelector('input');
this.input.addEventListener('change', () => this.onValueUpdate());
}
get field() {
return super.field;
}
set field(value) {
this.input.value = value;
super.field = value;
}
get max() {
@ -35,6 +45,11 @@ export default class Range extends FormInput {
refreshTabIndex() {
this.input.tabIndex = this.disabled ? -1 : this.tabIndex;
}
onValueUpdate() {
this.change(this.input.value);
this.$.$applyAsync();
}
}
ngModule.vnComponent('vnRange', {