fix(playground): convert fieldType number to string for json unmarshalling
This commit is contained in:
committed by
Richard Palethorpe
parent
fb1ab70650
commit
0e4e60cc15
@@ -118,7 +118,7 @@ function ActionsPlayground() {
|
|||||||
if (fieldType === 'checkbox') {
|
if (fieldType === 'checkbox') {
|
||||||
value = e.target.checked;
|
value = e.target.checked;
|
||||||
} else if (fieldType === 'number') {
|
} else if (fieldType === 'number') {
|
||||||
value = e.target.value === '' ? '' : Number(e.target.value);
|
value = e.target.value === '' ? '' : String(e.target.value);
|
||||||
} else {
|
} else {
|
||||||
value = e.target.value;
|
value = e.target.value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user