obojobo-chunks-question-bank
Advanced tools
Comparing version 12.0.0 to 12.1.0-alpha.0
@@ -38,5 +38,2 @@ import './viewer-component.scss' | ||
this.freezeEditor = this.freezeEditor.bind(this) | ||
this.unfreezeEditor = this.unfreezeEditor.bind(this) | ||
this.remove = this.remove.bind(this) | ||
@@ -105,14 +102,2 @@ this.addQuestion = this.addQuestion.bind(this) | ||
freezeEditor() { | ||
clearTimeout(window.restoreEditorFocusId) | ||
this.props.editor.toggleEditable(false) | ||
} | ||
unfreezeEditor() { | ||
window.restoreEditorFocusId = setTimeout(() => { | ||
this.updateNodeFromState() | ||
this.props.editor.toggleEditable(true) | ||
}) | ||
} | ||
displaySettings(editor, element) { | ||
@@ -131,4 +116,2 @@ const radioGroupName = `${element.id}-choose` | ||
onChange={this.changeChooseType} | ||
onFocus={this.freezeEditor} | ||
onBlur={this.unfreezeEditor} | ||
/> | ||
@@ -145,4 +128,2 @@ All questions | ||
onChange={this.changeChooseType} | ||
onFocus={this.freezeEditor} | ||
onBlur={this.unfreezeEditor} | ||
/> | ||
@@ -158,4 +139,2 @@ Pick | ||
onChange={this.onChangeContent.bind(this, 'choose')} | ||
onFocus={this.freezeEditor} | ||
onBlur={this.unfreezeEditor} | ||
/> | ||
@@ -169,4 +148,2 @@ </fieldset> | ||
onChange={this.onChangeContent.bind(this, 'select')} | ||
onFocus={this.freezeEditor} | ||
onBlur={this.unfreezeEditor} | ||
> | ||
@@ -233,8 +210,3 @@ <option value="sequential">In order</option> | ||
<div className={'obojobo-draft--chunks--question-bank editor-bank'}> | ||
<Button | ||
className="delete-button" | ||
onClick={this.remove} | ||
onFocus={this.freezeEditor} | ||
onBlur={this.unfreezeEditor} | ||
> | ||
<Button className="delete-button" onClick={this.remove}> | ||
× | ||
@@ -241,0 +213,0 @@ </Button> |
@@ -43,2 +43,3 @@ import './import-questions-modal.scss' | ||
child.type !== 'ObojoboDraft.Chunks.MCAssessment' && | ||
child.type !== 'ObojoboDraft.Chunks.NumericAssessment' && | ||
child.type !== 'ObojoboDraft.Chunks.Question' | ||
@@ -45,0 +46,0 @@ ) |
{ | ||
"name": "obojobo-chunks-question-bank", | ||
"version": "12.0.0", | ||
"version": "12.1.0-alpha.0", | ||
"license": "AGPL-3.0-only", | ||
@@ -61,3 +61,3 @@ "description": "QuestionBank chunk for Obojobo", | ||
}, | ||
"gitHead": "8bf5b97eaf88a31f8fae5e30d93499d22410c660" | ||
"gitHead": "b66a1dd5cc592400994cad047a6c13fcc1bc0e1f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
63809
722
2