File tree 2 files changed +2
-7
lines changed
src/components/Dropdown/DropdownCheckbox
2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @beeinventor/dasiot-react-component-lib" ,
3
- "version" : " 1.7.3 " ,
3
+ "version" : " 1.7.4 " ,
4
4
"module" : " lib/index.js" ,
5
5
"types" : " lib/index.d.ts" ,
6
6
"files" : [
Original file line number Diff line number Diff line change @@ -103,12 +103,6 @@ const DropdownCheckbox: React.VFC<DropdownCheckboxProps> = (props) => {
103
103
setIsOpen ( false ) ;
104
104
} ;
105
105
106
- useEffect ( ( ) => {
107
- if ( itemChecked . length > 0 ) {
108
- onSelect ( itemChecked ) ;
109
- }
110
- } , [ itemChecked ] ) ;
111
-
112
106
useEffect ( ( ) => {
113
107
if ( selectedIds === undefined || selectedIds . length === 0 ) {
114
108
setItemChecked ( [ ] ) ;
@@ -126,6 +120,7 @@ const DropdownCheckbox: React.VFC<DropdownCheckboxProps> = (props) => {
126
120
updateValue . push ( newValue ) ;
127
121
}
128
122
setItemChecked ( updateValue ) ;
123
+ onSelect ( updateValue ) ;
129
124
} ;
130
125
131
126
const items = list
You can’t perform that action at this time.
0 commit comments