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

[BUG] tabler VS import from bootstrap #1865

Open
radiz13 opened this issue Apr 4, 2024 · 2 comments
Open

[BUG] tabler VS import from bootstrap #1865

radiz13 opened this issue Apr 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@radiz13
Copy link

radiz13 commented Apr 4, 2024

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)

import { Controller } from '@hotwired/stimulus';
import { Tooltip } from 'bootstrap';
import { Controller } from '@hotwired/stimulus';
import { Toast } from 'bootstrap';

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) :

import '@tabler/core'
import '@tabler/core/dist/css/tabler.min.css'
import './styles/app.css'

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

  1. In my app.js : import '@tabler/core' / import '@tabler/core/dist/css/tabler.min.css'
  2. Create a Stimulus controller with an import from bootstrap js
  3. In my dom link the controller like
  4. Tabler js doesn't work

Screenshots

No response

JSFiddle

No response

@radiz13 radiz13 added the bug Something isn't working label Apr 4, 2024
@Bironou
Copy link

Bironou commented Apr 29, 2024

Did you manage to find a workaround?

@radiz13
Copy link
Author

radiz13 commented Apr 30, 2024

No 😔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants