@luomus/laji-form 15.1.43 → 15.1.44
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.
|
@@ -942,6 +942,7 @@ class AccordionHeader extends React.Component {
|
|
|
942
942
|
this.onHelpClick = (e) => {
|
|
943
943
|
e.preventDefault();
|
|
944
944
|
};
|
|
945
|
+
this.onKeyDown = this.props.that.props.formContext.utils.keyboardClick(this.onHeaderClick);
|
|
945
946
|
}
|
|
946
947
|
render() {
|
|
947
948
|
const { that, idx } = this.props;
|
|
@@ -967,7 +968,7 @@ class AccordionHeader extends React.Component {
|
|
|
967
968
|
const { Tooltip } = this.context.theme;
|
|
968
969
|
const tooltip = React.createElement(Tooltip, null, uiSchema["ui:help"]);
|
|
969
970
|
const headerTextComponent = hasHelp ? React.createElement(components_1.OverlayTrigger, { placement: "right", overlay: tooltip, show: this.state && this.state.focused || undefined }, headerText) : headerText;
|
|
970
|
-
const header = (React.createElement("div", { className: this.props.className, role: "tab", id: `${that.props.idSchema.$id}_${utils_1.getFormDataIndex(idx, that.props.uiSchema)}-header`, onClick: this.onHeaderClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave },
|
|
971
|
+
const header = (React.createElement("div", { className: this.props.className, role: "tab", id: `${that.props.idSchema.$id}_${utils_1.getFormDataIndex(idx, that.props.uiSchema)}-header`, onClick: this.onHeaderClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onKeyDown: this.onKeyDown, tabIndex: "0" },
|
|
971
972
|
React.createElement("div", { className: this.props.wrapperClassName },
|
|
972
973
|
headerTextComponent,
|
|
973
974
|
this.props.children)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luomus/laji-form",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.44",
|
|
4
4
|
"description": "React module capable of building dynamic forms from Laji form json schemas",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"repository": "git+https://github.com/luomus/laji-form.git",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@luomus/laji-map": "^5.1.
|
|
41
|
+
"@luomus/laji-map": "^5.1.11",
|
|
42
42
|
"@luomus/laji-validate": "^0.0.122",
|
|
43
43
|
"@rjsf/core": "~5.1.0",
|
|
44
44
|
"@rjsf/utils": "~5.1.0",
|