Ne pas raffraîchir si le text ne change pas
This commit is contained in:
parent
049b23c666
commit
6e361a5531
@ -432,7 +432,9 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.keyup(async event => {
|
.keyup(async event => {
|
||||||
this.options.recherche = this._optionRecherche(event.currentTarget)
|
const nouvelleRecherche = this._optionRecherche(event.currentTarget);
|
||||||
|
if (this.options.recherche?.text != nouvelleRecherche?.text){
|
||||||
|
this.options.recherche = nouvelleRecherche;
|
||||||
if (this.timerRecherche) {
|
if (this.timerRecherche) {
|
||||||
clearTimeout(this.timerRecherche);
|
clearTimeout(this.timerRecherche);
|
||||||
}
|
}
|
||||||
@ -440,6 +442,7 @@ export class RdDActorSheet extends ActorSheet {
|
|||||||
this.timerRecherche = undefined;
|
this.timerRecherche = undefined;
|
||||||
this.render(true);
|
this.render(true);
|
||||||
}, 500);
|
}, 500);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.change(async event =>
|
.change(async event =>
|
||||||
this.options.recherche = this._optionRecherche(event.currentTarget)
|
this.options.recherche = this._optionRecherche(event.currentTarget)
|
||||||
|
Loading…
Reference in New Issue
Block a user