mdbootstrap / TW-Elements

𝙃𝙪𝙜𝙚 collection of Tailwind MIT licensed (free) components, sections and templates 😎
https://tw-elements.com
MIT License
12.91k stars 1.62k forks source link

JS not working when upgrade from v1.0.0-beta1 to v1.0.0-beta2 in Vue #1615

Open iamyjx opened 1 year ago

iamyjx commented 1 year ago

Describe the bug only about js is not working, all style is ok ,such as Dropdown and Carousel, it look well but it can not action

To Reproduce all config is follow Tailwind Elements Vue integration and Quick Start

now I make it work for the moment

onMounted(() => {
  setTimeout(() => {
    initTE({ Carousel,Datepicker, Input,Dropdown  });
  }, 1000);   
})

please help me to config it properly

YMA-MDL commented 1 year ago

same here with a solid-js+Vite integration.

Trochonovitz commented 1 year ago

What bundler are you using with Vue? Is that default Vue CLI or something else?

iamyjx commented 1 year ago

@Trochonovitz It is vite

Trochonovitz commented 1 year ago

@iamyjx This is weird because in team we have tested import and initialization in two separate ways and computers. What is your specific tech-stack?

Cedricoss commented 1 year ago

Same here with Webpack in Symfony 6.2.9.

On initial load, nothing works. You have to do a manual reload for it to work. Or like @iamyjx, apply a setTimeOut