We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1fb5b commit 44be432Copy full SHA for 44be432
2 files changed
components/dash-core-components/src/components/RadioItems.tsx
@@ -54,7 +54,9 @@ export default function RadioItems({
54
options={sanitizedOptions}
55
selected={isNil(value) ? [] : [value]}
56
onSelectionChange={selection => {
57
- setProps({value: selection[selection.length - 1]});
+ if (selection.length) {
58
+ setProps({value: selection[selection.length - 1]});
59
+ }
60
}}
61
{...stylingProps}
62
/>
components/dash-core-components/src/utils/optionRendering.tsx
@@ -105,7 +105,7 @@ export const Option: React.FC<OptionProps> = ({
105
disabled={!!option.disabled}
106
onChange={() => onChange(option)}
107
onKeyUp={e => {
108
- if (e.key === 'Enter' && inputType === 'checkbox') {
+ if (e.key === 'Enter') {
109
onChange(option);
110
}
111
0 commit comments