On list change list templates now reset themselves so any scroll positions get reset as well.
This commit is contained in:
		| @@ -2145,6 +2145,9 @@ class list extends IgniteTemplate { | |||||||
|         IgniteRenderingContext.enter(); |         IgniteRenderingContext.enter(); | ||||||
|  |  | ||||||
|         try { |         try { | ||||||
|  |             //Reset the list so it's scroll resets too. ScrollTop is unreliable. | ||||||
|  |             this.element.parentElement.parentElement.replaceChild(this.element.parentElement, this.element.parentElement); | ||||||
|  |  | ||||||
|             this.construct(null); //The list changed, reconstruct this template. |             this.construct(null); //The list changed, reconstruct this template. | ||||||
|         } catch (error) { |         } catch (error) { | ||||||
|             console.error("An error occurred during onListChanged:", error); |             console.error("An error occurred during onListChanged:", error); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user