-
Notifications
You must be signed in to change notification settings - Fork 16
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
issue/2876 JSX version of text #57
Conversation
Found a framework bug during the conversion: when instruction text isn't provided, components.jsx line 42 attempts to evaluate mobileInstruction but mobileInstruction isn't defined in components.jsx lines 7-13
because, presumably, it isn't defined on the component model. This results in runtime error 'Uncaught ReferenceError: mobileInstruction is not defined'. Update: This also occurs when IT is left off the accordion (only other component I currently have using jsx). |
Fixed in commit adaptlearning/adapt_framework@87f15ed hopefully.
It's because this line https://github.com/adaptlearning/adapt_framework/blob/issue/2824-jsx/src/core/templates/partials/component.jsx#L43 is using a variable which is hasn't been defined, only if |
As discussed, things I need to work on:
UPDATE: all of the above are implemented in the fw branch issue/2824-jsx |
…el from ComponentModel
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.
👀
Ready to review, requires pr#3140 |
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.
👀
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.
👀
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.
👁️
part of adaptlearning/adapt_framework#2876