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 have searched the existing issues and this is a new bug.
Current Behavior
When using the NodeToolbar component without passing the isVisible prop, the toolbar does not show when selecting/clicking nodes. Reading the docs it seems like isVisible should be optional, but due to how boolean casting works for props, not passing it is equal to passing false.
Expected Behavior
When omitting the isVisible prop, selected nodes should still show the toolbar.
Passing undefined explicitly makes it work how I expect, so if I understand correctly, it is supposed to work without requiring something like data.toolbarVisible? If so, it is actually optional, hence the quotes in the tile.
Maybe explicitly set undefined as the default value? Or maybe it is more Vue idiomatic the way it is, I am not sure. But it took me a little while to figure out what was going on after I removed data.toolbarVisible and stopped passing isVisible, and it stopped working.
Steps To Reproduce
No response
Minimal reproduction of the issue with CodeSandbox
Is there an existing issue for this?
Current Behavior
When using the
NodeToolbar
component without passing theisVisible
prop, the toolbar does not show when selecting/clicking nodes. Reading the docs it seems likeisVisible
should be optional, but due to how boolean casting works for props, not passing it is equal to passingfalse
.Expected Behavior
When omitting the
isVisible
prop, selected nodes should still show the toolbar.Passing
undefined
explicitly makes it work how I expect, so if I understand correctly, it is supposed to work without requiring something likedata.toolbarVisible
? If so, it is actually optional, hence the quotes in the tile.Maybe explicitly set
undefined
as the default value? Or maybe it is more Vue idiomatic the way it is, I am not sure. But it took me a little while to figure out what was going on after I removeddata.toolbarVisible
and stopped passingisVisible
, and it stopped working.Steps To Reproduce
No response
Minimal reproduction of the issue with CodeSandbox
No response
Relevant log output
Anything else?
Maybe relevant vuejs/core#8576
The text was updated successfully, but these errors were encountered: