Cannot initialize dropdowns with Alpine
See original GitHub issueHi!
I’m currently using Kutty within a Nuxt app, but I cannot get the dropdowns to work ,since I’m getting Uncaught ReferenceError: dropdown is not defined
on the JS console every time. Could it be something related to Alpine JS?
Thanks in advance and awesome job with Kutty!
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to initialize the alpine component AFTER an event. #517
I'm trying to use the google maps API, and setting some initial Markers on page load. I have my component defined like this....
Read more >init
The x-init directive allows you to hook into the initialization phase of any element in Alpine. ... In the above example, "I'm being...
Read more >2 - AlpineJS Tutorial - How to create a dropdown with Alpine.js
Alpine.js offers you the reactive and declarative nature of big ... How to create a dropdown with Alpine.js | Using x-data, x- init,...
Read more >Building Related Selects in Alpine.js
The idea here is to only show the city drop-down when a state is selected. Now let's check out the JavaScript: document.addEventListener('alpine ......
Read more >javascript - How do you activate alpinejs?
To initialise an AlpineJs component you'll need an x-data attribute on the parent container: <div x-data="{ isShowing: false }"> <h1 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I confirm that setting the
mode
property to'spa'
(instead ofmode: 'universal'
), innuxt.config.js
, solves the issue with dropdowns.Hi. I’ve just created a minimal repo (where the issue can be reproduced) and added you as a collaborator. Again, thank you for your help.