mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): frame ignored event listeners in xml markup (#10646)
This commit is contained in:
committed by
GitHub
parent
712a9f4848
commit
750d2ee455
@@ -35,7 +35,8 @@ function buildEntryFromArgs(arg: any): NavigationEntry {
|
||||
|
||||
@CSSType('Frame')
|
||||
export class FrameBase extends CustomLayoutView {
|
||||
public static androidOptionSelectedEvent = 'optionSelected';
|
||||
public static navigatingToEvent = 'navigatingTo';
|
||||
public static navigatedToEvent = 'navigatedTo';
|
||||
|
||||
private _animated: boolean;
|
||||
private _transition: NavigationTransition;
|
||||
@@ -267,7 +268,7 @@ export class FrameBase extends CustomLayoutView {
|
||||
|
||||
newPage.onNavigatedTo(isBack);
|
||||
this.notify({
|
||||
eventName: Page.navigatedToEvent,
|
||||
eventName: FrameBase.navigatedToEvent,
|
||||
object: this,
|
||||
isBack,
|
||||
entry,
|
||||
@@ -452,7 +453,7 @@ export class FrameBase extends CustomLayoutView {
|
||||
|
||||
backstackEntry.resolvedPage.onNavigatingTo(backstackEntry.entry.context, isBack, backstackEntry.entry.bindingContext);
|
||||
this.notify({
|
||||
eventName: Page.navigatingToEvent,
|
||||
eventName: FrameBase.navigatingToEvent,
|
||||
object: this,
|
||||
isBack,
|
||||
entry: backstackEntry,
|
||||
|
||||
Reference in New Issue
Block a user