Comments (2)
Good spot. I'll try to tackle this soon but currently trying to focus a bit on the docs.
from blade-ui-kit.
Heya, so I did some digging. Actually, the fact that it would use the same variable is irrelevant because it's scoped in the callback. However, this could never work anyway because there can't be two window.onload
calls on the same page as they'd overwrite each other. So the solution to this would be a refactor to a lazy initialize somehow. I'd now refactored all components that used window.onload to Alpine's x-init
loading. This should allow components which use a JS callback to initialize JS scripts to be used on the same page.
Also: remember that if you want to use two mapbox components on the same page that you need to set two different ids. The Mapbox component has an id
of map
by default. Two HTML elements cannot have the same ID. So try this:
<x-mapbox id="map1" />
<x-mapbox id="map2" />
from blade-ui-kit.
Related Issues (20)
- Alpine V3 support HOT 1
- Looking for a co-maintainer HOT 9
- Uncaught RangeError: Maximum call stack size exceeded. HOT 6
- many incompatibility with laravel 9 and alpinejs3
- Better error handling for Unsplash component
- Dramatic performance difference between blade component and blade helper HOT 1
- defaultDate property broken before mouseenter is triggered
- How do I run an AlpineJS function when a new x-color-picker color is selected?
- Info: Bootstrap classes for form components
- @ bukStyles does not load any styles - How to troubleshoot? HOT 1
- Problem with conversion to HTML
- app uses buk components instead of resources/view/components
- Carbon formatting not working at all when using local HOT 1
- How do we get the size to work properly? HOT 2
- Conflict with filament 3 styles HOT 15
- TipTap Support
- Laravel default skeleton conflict HOT 2
- Laravel 11 Support HOT 2
- window.Alpine.plugin is not a function HOT 1
- Unable to install Blade UI Kit on Laravel 11 due to dependency conflict with Carbon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blade-ui-kit.