-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[BUG] tabler VS import from bootstrap #1865
Labels
bug
Something isn't working
Comments
Did you manage to find a workaround? |
No 😔 |
@radiz13 I had a very similar problem and I create this small package to sort the issue, it was a quick solution, but it works. // Import our custom core Tabler CSS
import '../src/scss/core.scss'
// Import only the Bootstrap components we need
import { Alert, Button, Carousel, Collapse, Dropdown, Modal, Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip } from 'bootstrap';
// Export components
export {
Alert, Button, Carousel, Collapse, Dropdown, Modal, Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip
} Not the most elegant, but it works, and hope this helps. In short, I use the original bootstrap js in conjunction with the Tabler SCSS source files in a metapackage. |
Thx, I prefer to comment "import '@tabler/core' for the moment", more simple. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Browser
Chrome Version 123.0.6312.105 / Firefox 124.0.2 (64 bits)
OS
Ubuntu Ubuntu 22.04.4 LTS
Screen size
2560x1440
Describe the bug
I know that Tabler include Bootstrap, but if I make Stimulus Turbo Controllers, I need to import some BS js like Toast or Tooltip (can't import them from Tabler)
If I do that, there's a problem : tabler js doesn't work (because @tabler/core contains a part of bootstrap ?)
In my app.js (I use Symfony with AssetMapper) :
dropdowns doesn't work, data-bs-toggle="autosize" in my textareas... and others componants from @tabler/core
In fact, same result as if I comment : import '@tabler/core'
Any solution ?
How to reproduce
Screenshots
No response
JSFiddle
No response
The text was updated successfully, but these errors were encountered: