-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add isExecutingOnNavigation property into trigger fix #9483 #9488
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'll work for sure, but do we really need the separation between isOnNavigation
and isOnNextPage
?
From my perspective there's just 2 scenarios, the onValueChange
and onNavigation
executions...
I'm worried that adding so many variables makes it hard to maintain.
Also, while you're changing checkTriggers
, I think you could add more strict typing :-)
Regardless, if you prefer it like this, this will solve my problem as far as i can tell! <3
@@ -4112,6 +4112,9 @@ export class SurveyModel extends SurveyElementCore | |||
const questions = this.getAllQuestions(true); | |||
const index = questions.indexOf(q); | |||
if(index < 0 || index === questions.length - 1) return false; | |||
const key: any = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const key: any = {}; | |
const key: Record<string, unknown> = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to be consistent. We use to have any
for these scenarios.
Thank you,
Andrew
I can't remove isExecutingOnNextPage. It could break somebodies code. You can use isExecutingOnNavigation. It will be true for both scenarios. Thank you, |
Fully agree, what about deprecating it? So it can be removed some time in the future? Edit: internally you could even make it a read only property that just mirrors the value of |
Yes, we can do it in the future. Thank you, |
@SamMousa I stopped using Thank you, |
No description provided.