@juantroconisf/lib 3.2.2 → 3.2.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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -250,9 +250,9 @@ function useFormChange({
|
|
|
250
250
|
...registerHandle(id),
|
|
251
251
|
onSelectionChange: (v) => onSelectionChange(
|
|
252
252
|
id,
|
|
253
|
-
isString ? v.currentKey : v
|
|
253
|
+
v.currentKey === null ? null : isString ? v.currentKey : v
|
|
254
254
|
),
|
|
255
|
-
selectedKeys: isString ? [state[id]] : state[id]
|
|
255
|
+
selectedKeys: state[id] === null ? [] : isString ? [state[id]] : state[id]
|
|
256
256
|
};
|
|
257
257
|
}
|
|
258
258
|
}),
|
package/dist/index.mjs
CHANGED
|
@@ -231,9 +231,9 @@ function useFormChange({
|
|
|
231
231
|
...registerHandle(id),
|
|
232
232
|
onSelectionChange: (v) => onSelectionChange(
|
|
233
233
|
id,
|
|
234
|
-
isString ? v.currentKey : v
|
|
234
|
+
v.currentKey === null ? null : isString ? v.currentKey : v
|
|
235
235
|
),
|
|
236
|
-
selectedKeys: isString ? [state[id]] : state[id]
|
|
236
|
+
selectedKeys: state[id] === null ? [] : isString ? [state[id]] : state[id]
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
239
|
}),
|
package/package.json
CHANGED