-
Notifications
You must be signed in to change notification settings - Fork 249
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
adapt-contrib-languagePicker: triggers error if _restoreStateOnLanguageChange enabled #2905
Comments
To fix the v5.6.1 error it looks like this line in languagePickerModel needs to be changed to: if (!Adapt.findById(this.locationId)) return; |
Can change the event listener to |
I'm not sure it's the event that's the problem, it's more why is it trying to send you to the course's first page? |
For example, in v5.7.0 if i disable the setting |
I think it's something to do with the |
This is a different issue altogether which has only surfaced in v5.7.0 because of this change. It's still possible to replicate this in earlier v5.x releases Have moved this over to #2907 |
If you have a multilanguage course and are using the option
_restoreStateOnLanguageChange
, when you switch language you either get an error (v5.6.1) - or no error but you end up on the wrong page (v5.7.0)In Adapt v5.6.1, this is the error that's being triggered:
In v5.7.0, (using the OOTB content) if you change language from the menu, question components or assessment pages, you end up being sent back to the presentation components page - which is presumably why the above error is being triggered: because languagePickerModel expects
'menuView:ready'
to be triggered, but it never is -'pageView:ready'
gets triggered instead.The text was updated successfully, but these errors were encountered: