mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 16:43:27 +08:00
fix: enable copy when dict is disabled (#2642)
✨ (dictAreaModal): add customizeCopy function to copy JSON to clipboard
This commit is contained in:
committed by
GitHub
parent
7d7502744e
commit
34ef234c42
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user