studiokit-scaffolding-js 7.0.7 → 7.0.8-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -237,8 +237,8 @@ var CustomToolbar = function (props) {
|
|
|
237
237
|
var ref = react_1.default.createRef();
|
|
238
238
|
react_1.useEffect(function () {
|
|
239
239
|
var _a;
|
|
240
|
-
// initialize the toolbar after reactQuill exists and the buttons are displayed
|
|
241
|
-
if (!isInitialized && reactQuillRef && !disabled) {
|
|
240
|
+
// initialize the toolbar after reactQuill exists and the buttons are displayed
|
|
241
|
+
if (!isInitialized && reactQuillRef && (!disabled || isVisibleWhenDisabled)) {
|
|
242
242
|
accessibilityFix_1.applyAccessibilityHacks(ref, reactQuillRef.getEditor());
|
|
243
243
|
// manually modify the table picker select svg icon
|
|
244
244
|
var label = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.querySelector('.ql-table .ql-picker-label');
|
|
@@ -259,7 +259,7 @@ var CustomToolbar = function (props) {
|
|
|
259
259
|
}
|
|
260
260
|
setIsInitialized(true);
|
|
261
261
|
}
|
|
262
|
-
}, [disabled, isInitialized, reactQuillRef, ref]);
|
|
262
|
+
}, [disabled, isInitialized, isVisibleWhenDisabled, reactQuillRef, ref]);
|
|
263
263
|
var toolbarSections = react_1.useMemo(function () { return getToolbarSectionsForOptions(sectionOptions); }, [sectionOptions]);
|
|
264
264
|
var hasMoreOptions = !lodash_1.isUndefined(moreSectionOptions);
|
|
265
265
|
var moreToolbarSections = react_1.useMemo(function () { return (!lodash_1.isUndefined(moreSectionOptions) ? getToolbarSectionsForOptions(moreSectionOptions) : []); }, [moreSectionOptions]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.8-alpha.1",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|