Problems of Updating from 1.0.0-alpha to 1.0.0-beta1 #1420
-
Hey everyone, I have some problems with updating my code in order for it to work with the new version. I use Django and the previous TW-Elements version worked perfectly fine (I stored my
With the exception of the tooltip everything works fine in the tutorial setting (see picture for broken tooltip). In my setting however the above problems occur even when copying the html from the Components site. I know that this description is very vague, but maybe someone can give me a reason, why with some components only part of the features are working, becouse I have no idea for an entrypoint of debugging. Are this maybe the parts that do not rely on js that are currently working? I'm rather certain that the problem lies on my end, but I have no clue on where to start debugging. Can someone give me a hint? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, I created an issue from your post - we will check Tailwind Elements integration with Django but I cannot promise you anything. |
Beta Was this translation helpful? Give feedback.
-
Hey, I have new insights. First of all: it is not a Django Problem. I did not set up my config file correctly. It contained of a mixture of old and new tailwind syntax (content/purge for example), which did not produce arrors beforehand. I also updated Tailwind from 2.7. to 3.7 and now it works mostly (remember to run As of now I managed to get the accordion and the carousel to work as intended. The tooltip however only works if i add var tooltipTriggerList = [].slice.call(
document.querySelectorAll('[data-te-toggle="tooltip"]')
);
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new te.Tooltip(tooltipTriggerEl);
}); and not via the data attributes. The tabs and also the checkboxes did not yet work properly, but i'll keep on trying. |
Beta Was this translation helpful? Give feedback.
Hi, I created an issue from your post - we will check Tailwind Elements integration with Django but I cannot promise you anything.