Skip to content
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

refactor(toolbar): update component #454

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Cr0zy07
Copy link
Collaborator

@Cr0zy07 Cr0zy07 commented Dec 18, 2023

Description

Linked Issues

cc #358

Additional context

Copy link
Contributor

github-actions bot commented Dec 18, 2023

Thank you for following the naming conventions! 🙏

@productdevbook productdevbook marked this pull request as ready for review December 18, 2023 09:26
@productdevbook productdevbook marked this pull request as draft December 18, 2023 09:26
chore: update snapshots
@Cr0zy07
Copy link
Collaborator Author

Cr0zy07 commented Dec 18, 2023

toolbar-saprator component doesn't pass down props especially the orientation prop to the saprator component using mergeProps(). As a workaround I attempt to spread only the attrs without using mergeProps().

Here's a demo video of the issue:
https://youtu.be/aZKVuRYcC1Y

Comment on lines 29 to 30
...mergeProps(attrs, otherProps),
orientation: computed(() => inject.orientation.value === 'horizontal' ? 'vertical' : 'horizontal').value,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just reordered them, and it works. I think the orientation get override by the orientation in the otherProps.

@Cr0zy07 Cr0zy07 marked this pull request as ready for review December 19, 2023 08:09
@productdevbook productdevbook marked this pull request as draft March 9, 2024 04:50
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.

None yet

2 participants