Open J-Michalek opened 2 months ago
@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.
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...
Using
Element
as the prop constructor should work just fine. The usage ofFunction
constructor also causes Vue warnings, when anElement
is provided as the value.This way there is no longer need to cast the prop using
PropType<string | Element>
.