TW-Elements icon indicating copy to clipboard operation
TW-Elements copied to clipboard

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

Open iamyjx opened this issue 1 year ago • 5 comments

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

iamyjx avatar Apr 20 '23 06:04 iamyjx

same here with a solid-js+Vite integration.

YMA-MDL avatar Apr 20 '23 14:04 YMA-MDL

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

Trochonovitz avatar Apr 21 '23 11:04 Trochonovitz

@Trochonovitz It is vite

iamyjx avatar Apr 22 '23 13:04 iamyjx

@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?

Trochonovitz avatar Apr 25 '23 09:04 Trochonovitz

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

Cedricoss avatar Apr 28 '23 11:04 Cedricoss