Skip to content
New issue

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

Configuration makes the implementation fail #24

Open
pzehle opened this issue May 27, 2024 · 3 comments
Open

Configuration makes the implementation fail #24

pzehle opened this issue May 27, 2024 · 3 comments

Comments

@pzehle
Copy link

pzehle commented May 27, 2024

Just adding the configuration tag to the component makes the embedded iframe to just be blank. Adding or removing any options to the object makes no difference:

<DrawIoEmbed
	urlParameters={{
		ui: 'min',
		spin: true,
		saveAndExit: false,
		noSaveBtn: true,
		noExitBtn: true,
	}}
	configuration={{}}
/>

Removing the configuration tag makes it load correctly. Am I doing something wrong?

@marcveens
Copy link
Owner

Perhaps it's better to make the configuration option undefined if it's not used. Does that help?

@pzehle
Copy link
Author

pzehle commented May 27, 2024

The problem is not actually that, the problem is that I DO want to send configurations to it, since I want to allow only the use of UML libraries.

@marcveens
Copy link
Owner

In Storybook there a working demo where urlParameters, xml and configurations are combined: https://marcveens.github.io/react-drawio/?path=/story/components-drawioembed--with-configurations (and the code).

If that still doesn't help, could you provide working example using Stackblitz for example so I can have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants