We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78a495 commit 76dd57cCopy full SHA for 76dd57c
editor/static/js/question/edit.js
@@ -2436,7 +2436,13 @@ $(document).ready(function() {
2436
if(!val || this.error()) {
2437
return false;
2438
}
2439
- return Numbas.jme.isType(val,'html') && val.isInteractive();
+ if(!Numbas.jme.isType(val,'html')) {
2440
+ return false;
2441
+ }
2442
+
2443
+ val = Numbas.jme.castToType(val, 'html');
2444
2445
+ return val.isInteractive();
2446
},this);
2447
2448
this.thisLocked = ko.observable(false);
0 commit comments