You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious about the reasoning behind this implementation:
Why hardcode force-mount="true" instead of respecting the user's forceMount prop?
Is there a specific accessibility or technical requirement that necessitates always keeping the container mounted?
Could this be achieved while still allowing user control?
Isn't unmountOnHide redundant with forceMount?
Both seem to control mounting behavior, but at different levels
Could we simplify this by using forceMount to control the container and let unmountOnHide handle the content?
Current structure: force-mount="true" + unmountOnHide for slots
Proposed: forceMount for container + unmountOnHide for slots
Vue Transition animations cannot work
Since elements are always mounted to the DOM (only hidden via :hidden="!present"), Vue's <Transition> component cannot detect mount/unmount events to trigger animations.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
TabsContent
force-mount
Always True - Prevents Vue Transition Animations and Ignores User Props🐛 Issue Description
In the current
TabsContent.vue
implementation, thePresence
component'sforce-mount
attribute is hardcoded totrue
, which causes several issues:I'm curious about the reasoning behind this implementation:
Why hardcode
force-mount="true"
instead of respecting the user'sforceMount
prop?Isn't
unmountOnHide
redundant withforceMount
?forceMount
to control the container and letunmountOnHide
handle the content?force-mount="true"
+unmountOnHide
for slotsforceMount
for container +unmountOnHide
for slotsVue Transition animations cannot work
Since elements are always mounted to the DOM (only hidden via
:hidden="!present"
), Vue's<Transition>
component cannot detect mount/unmount events to trigger animations.Beta Was this translation helpful? Give feedback.
All reactions