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

Navigation dropdowns are hidden #5

Open
nurmuhammet-ali opened this issue Mar 12, 2022 · 1 comment
Open

Navigation dropdowns are hidden #5

nurmuhammet-ali opened this issue Mar 12, 2022 · 1 comment

Comments

@nurmuhammet-ali
Copy link

nurmuhammet-ali commented Mar 12, 2022

laravel: 8.75
nova: 3.29.0
actengage/nova-wizard: 0.9.8

Seems like when wizard tries to hide default create buttons it automatically hides the navigation buttons also.

BTW, great package, thank you. :)

@nurmuhammet-ali
Copy link
Author

Temporary solution, in mixin.js

        hideDefaultSubmitButtons() {
            Array.from(this.$parent.$el.querySelectorAll('button'))
                .filter(child => child !== this.$el)
                .forEach(el => {
                   // I noticed nova default submit buttons have "dusk" attribute, so I tackled them, but the solution could be better
                    if (el.hasAttribute('dusk')) {
                        el.style.display = 'none'
                    }
                });
        },

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

No branches or pull requests

1 participant