@mxenabled/connect-widget 0.13.2 → 0.13.3
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.
- package/dist/index.es.js +31 -0
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -64864,6 +64864,21 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
64864
64864
|
const tokens = useTokens();
|
|
64865
64865
|
const styles = getStyles$17(tokens);
|
|
64866
64866
|
const getNextDelay = getDelay();
|
|
64867
|
+
const emailInputRef = useRef(null);
|
|
64868
|
+
const institutionNameInputRef = useRef(null);
|
|
64869
|
+
const institutionWebsiteInputRef = useRef(null);
|
|
64870
|
+
const institutionLoginInputRef = useRef(null);
|
|
64871
|
+
useEffect(() => {
|
|
64872
|
+
if (errors.email) {
|
|
64873
|
+
emailInputRef.current?.focus();
|
|
64874
|
+
} else if (errors.institutionName) {
|
|
64875
|
+
institutionNameInputRef.current?.focus();
|
|
64876
|
+
} else if (errors.institutionWebsite) {
|
|
64877
|
+
institutionWebsiteInputRef.current?.focus();
|
|
64878
|
+
} else if (errors.institutionLogin) {
|
|
64879
|
+
institutionLoginInputRef.current?.focus();
|
|
64880
|
+
}
|
|
64881
|
+
}, [errors]);
|
|
64867
64882
|
useEffect(() => {
|
|
64868
64883
|
if (submitting) {
|
|
64869
64884
|
const ticket = {
|
|
@@ -64900,6 +64915,10 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
64900
64915
|
fullWidth: true,
|
|
64901
64916
|
helperText: errors.email,
|
|
64902
64917
|
id: "email",
|
|
64918
|
+
inputProps: {
|
|
64919
|
+
"aria-describedby": errors.email ? "email-error" : void 0
|
|
64920
|
+
},
|
|
64921
|
+
inputRef: emailInputRef,
|
|
64903
64922
|
label: schema.email.label,
|
|
64904
64923
|
name: "email",
|
|
64905
64924
|
onChange: handleTextInputChange,
|
|
@@ -64916,6 +64935,10 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
64916
64935
|
fullWidth: true,
|
|
64917
64936
|
helperText: errors.institutionName,
|
|
64918
64937
|
id: "institutionName",
|
|
64938
|
+
inputProps: {
|
|
64939
|
+
"aria-describedby": errors.institutionName ? "institutionName-error" : void 0
|
|
64940
|
+
},
|
|
64941
|
+
inputRef: institutionNameInputRef,
|
|
64919
64942
|
label: schema.institutionName.label,
|
|
64920
64943
|
name: "institutionName",
|
|
64921
64944
|
onChange: handleTextInputChange,
|
|
@@ -64931,6 +64954,10 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
64931
64954
|
fullWidth: true,
|
|
64932
64955
|
helperText: errors.institutionWebsite,
|
|
64933
64956
|
id: "institutionWebsite",
|
|
64957
|
+
inputProps: {
|
|
64958
|
+
"aria-describedby": errors.institutionWebsite ? "institutionWebsite-error" : void 0
|
|
64959
|
+
},
|
|
64960
|
+
inputRef: institutionWebsiteInputRef,
|
|
64934
64961
|
label: schema.institutionWebsite.label,
|
|
64935
64962
|
name: "institutionWebsite",
|
|
64936
64963
|
onChange: handleTextInputChange,
|
|
@@ -64947,6 +64974,10 @@ const RequestInstitution = React__default.forwardRef((props, requestInstitutionR
|
|
|
64947
64974
|
fullWidth: true,
|
|
64948
64975
|
helperText: errors.institutionLogin,
|
|
64949
64976
|
id: "institutionLogin",
|
|
64977
|
+
inputProps: {
|
|
64978
|
+
"aria-describedby": errors.institutionLogin ? "institutionLogin-error" : void 0
|
|
64979
|
+
},
|
|
64980
|
+
inputRef: institutionLoginInputRef,
|
|
64950
64981
|
label: schema.institutionLogin.label,
|
|
64951
64982
|
name: "institutionLogin",
|
|
64952
64983
|
onChange: handleTextInputChange,
|