Open ourognao opened 11 months ago
Issue is caused by the props from the QStepper being provided on https://github.com/quasarframework/quasar/blob/7e794f7068475dabd9d64dc41ec78d19caa31b57/ui/src/components/stepper/QStepper.js#L60-L65
And the QStep injecting the props on https://github.com/quasarframework/quasar/blob/7e794f7068475dabd9d64dc41ec78d19caa31b57/ui/src/components/stepper/QStep.js#L64
Making it so the 2nd QStep child is inheriting from the first parent like described in: https://vuejs.org/guide/components/provide-inject.html#working-with-symbol-keys when using symbol keys.
QStepper would need to generate a unique key if a child QStepper is being used to avoid collision from the provide/inject. Its weird because Vue is supposed to walk up the dom and look for the first provide. Ill have to debug this a bit further.
I would like to tackle this issue if possible
Oh, thanks for taking a look at this issue @HarisSpahija
What happened?
I would like to use the first stepper in horizontal and the second stepper (inside the first one) in vertical but the second stepper inherit from the parent stepper which is horizontal mode.
What did you expect to happen?
Child steppers should be free to work in vertical or horizontal mode.
Reproduction URL
https://codepen.io/alainrc2005/pen/MWmQwVx?editors=1000
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Components (quasar)
Platforms/Browsers
Chrome, Safari
Quasar info output
Relevant log output
No response
Additional context
The issue is close to this one here. It seems there is a inheritance issue.