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

Handle not reqognised when child component is not ready #116

Closed
muuvmuuv opened this issue Jan 17, 2025 · 2 comments
Closed

Handle not reqognised when child component is not ready #116

muuvmuuv opened this issue Jan 17, 2025 · 2 comments

Comments

@muuvmuuv
Copy link

Image

Inside my app-widget-plot I have a handle that I gave the defined attribute but Swapy doesn't find it. My framework doesn't have a way to "wait" for it being rendered so I wonder if "swapy.update()" could also re-check for the handles so I can call it a few seconds after through a timeout?

@muuvmuuv
Copy link
Author

Oh ok, it was just some weird behaviour when the handle has child elements like an icon component. This css fixed it:

	.drag {
		cursor: grab;
		padding: var(--spacing-xxs);

		* {
			pointer-events: none;
		}
	}

Maybe something for the docs?

@TahaSh
Copy link
Owner

TahaSh commented Jan 19, 2025

Fixed in v1.0.4. Thank you for opening this issue!

@TahaSh TahaSh closed this as completed Jan 19, 2025
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