StablexUI icon indicating copy to clipboard operation
StablexUI copied to clipboard

Viewstack .current

Open Sartoric opened this issue 11 years ago • 0 comments

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

Sartoric avatar Feb 08 '14 10:02 Sartoric