We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import {createJSONEditor} from 'https://esm.sh/[email protected]/standalone.js' : React.useEffect(() => { const editor = createJSONEditor({ target: document.getElementById(props.id), }); editor.expand([], () => true); }, []) :
This code is correct in v1.1.2, but it causes an exception in v2.0.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'expand') on JSONEditor.svelte:219
export async function expand(path: JSONPath, callback?: OnExpand): Promise<void> { refJSONEditorRoot.expand(path, callback) await tick() // await rerender }
IMHO, refJSONEditorRoot might not be ready on v2.0.
refJSONEditorRoot
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This code is correct in v1.1.2, but it causes an exception in v2.0.
IMHO,
refJSONEditorRoot
might not be ready on v2.0.The text was updated successfully, but these errors were encountered: