fix onHidden and setHasChanges in SF.UI.ts