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 => { |       .keyup(async event => { | ||||||
|         this.options.recherche = this._optionRecherche(event.currentTarget) |         const nouvelleRecherche = this._optionRecherche(event.currentTarget); | ||||||
|         if (this.timerRecherche) { |         if (this.options.recherche?.text != nouvelleRecherche?.text){ | ||||||
|           clearTimeout(this.timerRecherche); |           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 => |       .change(async event => | ||||||
|         this.options.recherche = this._optionRecherche(event.currentTarget) |         this.options.recherche = this._optionRecherche(event.currentTarget) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user