-
Notifications
You must be signed in to change notification settings - Fork 57
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
Update select.html - URGENT #153
Conversation
Hi @Thutmose3! Thx for the PR! The div seems to be astray - there is only one Can you confirm that the error isn't in some other part of your application? Best regards |
I can confirm the issue. Strongly suggest that instead of having isolated |
Yes, there is something strange with these divs, it might slip under the radar for some people as the browser fixes this issue sometimes on the fly, but sometimes it can't and then you have broken html/website |
Thx for your input! Anybody up for a second round of PR? I think adding a stray div in the select.html isn't clean, right? |
Ok i fixed all astray div's in field.html, and corresponding included files. I think in the future D or https://github.com/Riverside-Healthcare/djLint pre-commit hooks should be used to prevent these mistakes. |
@Thutmose3 Thx for your effort, I'll have a look the next days! And totally agree on the HTML linter - though it wouldn't have fixed this specific issue, right? Since djlint claims to be unmaintained and I've had a very fruitful improvement disussion with the maintainer of DjHTML a couple of months ago, I'd go for this one. Agreed? |
Supplemental: The code looks good and this would explain the original issue. But some tests fail now. Could you have a look why? Best |
I like bot DjHTML and djlint, so good for me. For the tests i tried to track down the issue, but it's super strange. It seems that when the divs are wrong the tests pass, but when the divs are correct, the tests fail. So i think the tests are wrong or something, you maybe have better insigts on how these tests work? |
I checked your branch and I had to merge the latest main to make it reproducible. Very odd! Nevertheless, if you look at the HTML output in the tests, we do have a stray closing div tag there, so the tests fail for the right reason. But I don't get, where this is coming from... Update: @Thutmose3 Please merge the current main branch and look at the |
Ok i just merged main into my branch, and removed that stray div. Tests are not starting automatically, how come? |
@Thutmose3 awesome! And in this repo, somebody has to approve pipelines. Guess, to avoid running into throttling from github. Just started it, though. Let's see what happens! |
Ok, it all seems to pass now! Other question, why do we do "{% include 'tailwind/layout/select.html' %}" when it's only called once in the entire project? |
Hi @Thutmose3 I think the idea is that everybody can overwrite this element as simple as possible so they put it in a separate file. I'll double check the changes in here soon and prepare a release soon. 👌 |
Ok @Thutmose3! v1.0.3 is on PyPI: https://pypi.org/project/crispy-tailwind/#history Hope it works and thx for the effort! 💪 |
I upgraded, and it seems to work properly, will report back if i see more issues |
Late to show, but confirmed working here (1.0.3) |
This line was removed in a previous commit, which breaks the HTML of the whole page