mirror of
https://github.com/strapi/strapi.git
synced 2025-08-06 15:53:11 +00:00
updated handleChange comment
This commit is contained in:
parent
c943009ba1
commit
2ba1b0982b
@ -233,7 +233,7 @@ const EditViewDataManagerProvider = ({
|
|||||||
({ target: { name, value, type } }, shouldSetInitialValue = false) => {
|
({ target: { name, value, type } }, shouldSetInitialValue = false) => {
|
||||||
let inputValue = value;
|
let inputValue = value;
|
||||||
|
|
||||||
// Allow to reset text, string, email, uid, select/enum, date
|
// Allow to reset text, email, uid, select/enum, and number
|
||||||
if (
|
if (
|
||||||
['text', 'string', 'email', 'uid', 'select', 'select-one', 'number'].includes(type) &&
|
['text', 'string', 'email', 'uid', 'select', 'select-one', 'number'].includes(type) &&
|
||||||
!value
|
!value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user