-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: unexpected undefined size of icon #4977
Conversation
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
@@ -34,12 +34,15 @@ | |||
$: url = isAsset(icon) ? getMetadata(toAsset(icon)) ?? 'https://anticrm.org/logo.svg' : '' | |||
|
|||
$: _fill = iconProps?.fill ?? fill | |||
|
|||
// workaround to prevent sveltejs bug in `svelte:component`: https://github.com/sveltejs/svelte/issues/9177 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be quite a major bug that might affect not only icons but potentially all places where we use svelte:component
. How we can ensure those are not affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we need to check all places where use use svelte:component and address them until issue will be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does svelte:self or svelte:fragment also affected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just found sveltejs/svelte#10604, and we probable should update to
svelte@4.2.12 to address it instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's update to 4.2.12 and check if the issue is fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update
Update to svelte helped, closing |
Contribution checklist
Brief description
This bug is caused by a bug in sveltejs, but we have a workaround
Screencast
Screen.Recording.2024-03-14.at.23.29.46.mov
Checklist
Related issues
Resolves #4960
Contributor requirements
View in Huly UBERF-6023