File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
components/dash-core-components/src Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ export default function RadioItems({
5454 options = { sanitizedOptions }
5555 selected = { isNil ( value ) ? [ ] : [ value ] }
5656 onSelectionChange = { selection => {
57- setProps ( { value : selection [ selection . length - 1 ] } ) ;
57+ if ( selection . length ) {
58+ setProps ( { value : selection [ selection . length - 1 ] } ) ;
59+ }
5860 } }
5961 { ...stylingProps }
6062 />
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ export const Option: React.FC<OptionProps> = ({
105105 disabled = { ! ! option . disabled }
106106 onChange = { ( ) => onChange ( option ) }
107107 onKeyUp = { e => {
108- if ( e . key === 'Enter' && inputType === 'checkbox' ) {
108+ if ( e . key === 'Enter' ) {
109109 onChange ( option ) ;
110110 }
111111 } }
You can’t perform that action at this time.
0 commit comments