Skip to content

fix(vue): nav component accepts kebab-case component properties - #28615

Merged
liamdebeasi merged 3 commits into
ionic-team:mainfrom
Ericlm:ion-nav-vue-casing
Dec 1, 2023
Merged

liamdebeasi merged 3 commits into
ionic-team:mainfrom
Ericlm:ion-nav-vue-casing

Conversation

@Ericlm

@Ericlm Ericlm commented Nov 30, 2023 •

Copy link
Copy Markdown
Contributor

Issue number: resolves #28611


What is the current behavior?

It's not possible to pass props that are not camelCase to the IonNav component.

What is the new behavior?

  • It is now possible to set a props with kebab-case instead of camelCase (for example, root-params instead of rootParams)

Does this introduce a breaking change?

  • Yes
  • No

Other information

⚠️ This is my first PR for ionic so I hope I didn't miss important steps into the process. I also checked on my project that the fix is working well. Thank you! 🙂

@github-actions github-actions Bot added the package: vue @ionic/vue package label Nov 30, 2023
@sean-perkins sean-perkins changed the title fix(nav): adds component props to allow kebab-case fix(vue): nav component accepts kebab-case component properties Nov 30, 2023
@sean-perkins
sean-perkins self-requested a review November 30, 2023 21:29

@sean-perkins sean-perkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work! Thanks for your contribution!

@liamdebeasi liamdebeasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Verified fix using dev build 7.5.8-dev.11701374238.101cd738. Thanks for contributing this fix!

@liamdebeasi
liamdebeasi added this pull request to the merge queue Dec 1, 2023
Merged via the queue into ionic-team:main with commit 60303aa Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: RootParams of ion-nav not detected if in kebab-case

3 participants