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

wip: render button as a tag (need feedback) #1602

Closed

Conversation

hay-kot
Copy link
Contributor

@hay-kot hay-kot commented Mar 4, 2023

Closes #1259

I've adjusted the button component to conditionally render the proper element given the props. I did run into one oddity. If you specify both the :href="..." and :to="..." the Router Links will not work, hence the btnAttrs work around to avoid the issue.

Additionally, this PR currently causes a recursive render because the Button component and the DOM button element share the same name, so if we conditionally render based on the string button it tries to render the Button component and then we hit a max recursion limit. To resolve this we need to rename the button component.

What should I rename it to? BaseButton would be my suggestion, but I wanted some feedback for I make that big of a change.

@hay-kot hay-kot marked this pull request as ready for review March 4, 2023 08:07
@6543 6543 added the ui frontend related label Apr 3, 2023
@6543 6543 added this to the 1.0.0 milestone Apr 3, 2023
@anbraten anbraten removed this from the 1.0.0 milestone May 30, 2023
@6543
Copy link
Member

6543 commented Jul 12, 2023

BaseButton sounds fine to me

cc @anbraten

@qwerty287 qwerty287 added this to the 1.1.0 milestone Jul 12, 2023
@qwerty287
Copy link
Contributor

See #2378

@qwerty287 qwerty287 closed this Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui frontend related
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

repo list allow to open in new tab
4 participants