Skip to content

Conversation

@J-Michalek
Copy link

Using Element as the prop constructor should work just fine. The usage of Function constructor also causes Vue warnings, when an Element is provided as the value.

This way there is no longer need to cast the prop using PropType<string | Element>.

@KABBOUCHI
Copy link
Owner

KABBOUCHI commented May 27, 2024

@J-Michalek if remember correctly, using Element as value caused SSR issues in Nuxt few years back, I need to test it properly with Nuxt first.

@J-Michalek
Copy link
Author

Well if it is still an issue today, may I suggest adding a comment to the prop so that it is obvious that it should indeed be that way? I am not using Nuxt, so I cannot easily help with testing it...

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

Successfully merging this pull request may close these issues.

2 participants