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
{{ message }}
Repository navigation
bug: RootParams of ion-nav not detected if in kebab-case #28611
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
I created an Ionic-Vue project, and when using the ion-nav component, the root component doesn't get any props if ion-nav uses kebab-case but it works perfectly with camelCase.
ionic info doesn't seem to work with my project (?)
[ERROR] Invalid project type: vue-vite (project config: ./ionic.config.json).
Project type must be one of: angular, ionic-angular, ionic1, custom, react, vue
Bad project type: undefined
IonNav.name="IonNav";/** * The default values follow what is defined at * https://ionicframework.com/docs/api/nav#properties * otherwise the default values on the Web Component * may be overridden. For example, if the default animated value * is not `true` below, then Vue would default the prop to `false` * which would override the Web Component default of `true`. */IonNav.props={animated: {type: Boolean,default: true},animation: {type: Function,default: undefined},root: {type: [Function,Object,String],default: undefined},rootParams: {type: Object,default: undefined},swipeGesture: {type: Boolean,default: undefined}}
There's probably a better solution for not overriding the Web Component default values, but I think it's fine to stick with this approach for now and the team can look into a better solution in the future.
This issue has been labeled as help wanted. This label is added to issues that we believe would be good for contributors.
If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.
For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
Ericlm commentedon Nov 30, 2023
*Maybe the same issue with
componentPropsonion-nav-link.liamdebeasi commentedon Nov 30, 2023
Can you make your repo public?
Ericlm commentedon Nov 30, 2023
Sorry didn't see that 🤦♂️ It should be public now.
liamdebeasi commentedon Nov 30, 2023
Thanks! This is a bug in Ionic. We aren't setting component props in https://github.com/ionic-team/ionic-framework/blob/a3cd204f616606ccffc35082655e55fdfb19fe28/packages/vue/src/components/IonNav.ts.
Are you interested in making a PR to fix this? We'll need to make the following changes:
There's probably a better solution for not overriding the Web Component default values, but I think it's fine to stick with this approach for now and the team can look into a better solution in the future.
propsto the render function.ionitron-bot commentedon Nov 30, 2023
This issue has been labeled as
help wanted. This label is added to issues that we believe would be good for contributors.If you'd like to work on this issue, please comment here letting us know that you would like to submit a pull request for it. This helps us to keep track of the pull request and make sure there isn't duplicated effort.
For a guide on how to create a pull request and test this project locally to see your changes, see our contributing documentation.
Thank you!
Ericlm commentedon Nov 30, 2023
I may take a look at it! 🙂
fix(vue): nav component accepts kebab-case component properties (#28615)
liamdebeasi commentedon Dec 1, 2023
Thanks for the issue. This has been resolved via #28615, and a fix will be available in an upcoming release of Ionic Framework.
ionitron-bot commentedon Dec 31, 2023
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.