kopia lustrzana https://github.com/shoelace-style/shoelace
Remove return value since there isn't one
rodzic
f0ba06e6ec
commit
e16ad458ee
|
@ -176,15 +176,13 @@ export class Input {
|
|||
end: number,
|
||||
selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'
|
||||
) {
|
||||
const returnValue = this.input.setRangeText(replacement, start, end, selectMode);
|
||||
this.input.setRangeText(replacement, start, end, selectMode);
|
||||
|
||||
if (this.value !== this.input.value) {
|
||||
this.value = this.input.value;
|
||||
this.slChange.emit();
|
||||
this.slInput.emit();
|
||||
}
|
||||
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
handleChange() {
|
||||
|
|
|
@ -154,7 +154,7 @@ export class Textarea {
|
|||
end: number,
|
||||
selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'
|
||||
) {
|
||||
const returnValue = this.textarea.setRangeText(replacement, start, end, selectMode);
|
||||
this.textarea.setRangeText(replacement, start, end, selectMode);
|
||||
|
||||
if (this.value !== this.textarea.value) {
|
||||
this.value = this.textarea.value;
|
||||
|
@ -162,8 +162,6 @@ export class Textarea {
|
|||
this.slChange.emit();
|
||||
this.slInput.emit();
|
||||
}
|
||||
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
handleChange() {
|
||||
|
|
Ładowanie…
Reference in New Issue