forked from public/foundryvtt-reve-de-dragon
		
	Ne pas raffraîchir si le text ne change pas
This commit is contained in:
		| @@ -432,14 +432,17 @@ export class RdDActorSheet extends ActorSheet { | ||||
|         } | ||||
|       }) | ||||
|       .keyup(async event => { | ||||
|         this.options.recherche = this._optionRecherche(event.currentTarget) | ||||
|         if (this.timerRecherche) { | ||||
|           clearTimeout(this.timerRecherche); | ||||
|         const nouvelleRecherche = this._optionRecherche(event.currentTarget); | ||||
|         if (this.options.recherche?.text != nouvelleRecherche?.text){ | ||||
|           this.options.recherche = nouvelleRecherche; | ||||
|           if (this.timerRecherche) { | ||||
|             clearTimeout(this.timerRecherche); | ||||
|           } | ||||
|           this.timerRecherche = setTimeout(() => { | ||||
|             this.timerRecherche = undefined; | ||||
|             this.render(true); | ||||
|           }, 500); | ||||
|         } | ||||
|         this.timerRecherche = setTimeout(() => { | ||||
|           this.timerRecherche = undefined; | ||||
|           this.render(true); | ||||
|         }, 500); | ||||
|       }) | ||||
|       .change(async event => | ||||
|         this.options.recherche = this._optionRecherche(event.currentTarget) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user