(val)
| 29 | } |
| 30 | |
| 31 | const setNewVal = (val) => { |
| 32 | const newVal = cloneDeep(myValue) |
| 33 | newVal[mouseUpKey] = val |
| 34 | onChange(JSON.stringify(newVal)) |
| 35 | setMyValue((params) => ({ |
| 36 | ...params, |
| 37 | [mouseUpKey]: val |
| 38 | })) |
| 39 | } |
| 40 | |
| 41 | const onClipboardCopy = (e) => { |
| 42 | const src = e.src |
no test coverage detected