StablexUI
StablexUI copied to clipboard
Viewstack .current
Hi When checking the .current view on-change after using the back button, the "current" view is not set to the toShow but it is still set to the toHide (history is not yet cleaned).
As a workaround I'm just firing the CHANGE event after the history.pop in the back function and I've added an "isback:Bool = false" flag to the show/showidx functions in order to fire the CHANGE only if (!isback) {this.dispatchEvent(new WidgetEvent(WidgetEvent.CHANGE));}
Just want to know if this is a "by design" behaviour or "by mistake" (:smile: just kidding) and if there is already a way to check the "right" current view after the back button is pressed, maybe using an event I've missed
Thanks