@thecb/components 7.6.1-beta.0 → 7.6.1-beta.2
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/package.json
CHANGED
|
@@ -46,7 +46,7 @@ const Obligation = ({
|
|
|
46
46
|
The top level desc/subdesc for all obligations in a collection is the same
|
|
47
47
|
(Collection accounts look different in the Account Details page)
|
|
48
48
|
*/
|
|
49
|
-
const firstObligation = obligations[0];
|
|
49
|
+
const firstObligation = obligations?.[0] ?? {};
|
|
50
50
|
const {
|
|
51
51
|
allowedPaymentInstruments = [CASH_METHOD, CC_METHOD, ACH_METHOD],
|
|
52
52
|
description = "Account",
|
|
@@ -146,9 +146,9 @@ const RadioSection = ({
|
|
|
146
146
|
tabIndex={
|
|
147
147
|
section.hideRadioButton || section.disabled ? "-1" : "0"
|
|
148
148
|
}
|
|
149
|
-
onKeyDown={e => handleKeyDown(section.id, e)}
|
|
150
|
-
onFocus={() => setFocused(section.id)}
|
|
151
|
-
onBlur={() => setFocused(null)}
|
|
149
|
+
onKeyDown={e => !section.disabled && handleKeyDown(section.id, e)}
|
|
150
|
+
onFocus={() => !section.disabled && setFocused(section.id)}
|
|
151
|
+
onBlur={() => !section.disabled && setFocused(null)}
|
|
152
152
|
hoverStyles={themeValues.focusStyles}
|
|
153
153
|
animate={openSection === section.id ? "open" : "closed"}
|
|
154
154
|
initial={initiallyOpen ? "open" : "closed"}
|
|
@@ -173,7 +173,7 @@ const RadioSection = ({
|
|
|
173
173
|
: () => toggleOpenSection(section.id)
|
|
174
174
|
}
|
|
175
175
|
onTouchEnd={
|
|
176
|
-
|
|
176
|
+
isMobile && supportsTouch && !section.disabled
|
|
177
177
|
? () => toggleOpenSection(section.id)
|
|
178
178
|
: noop
|
|
179
179
|
}
|