fix: enable copy when dict is disabled (#2642)

 (dictAreaModal): add customizeCopy function to copy JSON to clipboard
This commit is contained in:
Cristhian Zanforlin Lousa 2024-07-11 18:47:00 -03:00 committed by GitHub
commit 34ef234c42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,6 +73,9 @@ export default function DictAreaModal({
setMyValue(edit.src);
}}
src={cloneDeep(myValue)}
customizeCopy={(copy) => {
navigator.clipboard.writeText(JSON.stringify(copy));
}}
/>
</div>
</BaseModal.Content>