Skip to content

Intellisense stops working after <style dangerouslySetInnerHTML={{ __html: '...' }} /> containing > in __html #496

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

Closed
TomerAberbach opened this issue Feb 21, 2022 · 2 comments · Fixed by #502

Comments

@TomerAberbach
Copy link

What version of Tailwind CSS IntelliSense are you using?

v0.7.7

What version of Tailwind CSS are you using?

v3.0.23

What package manager are you using?

npm

What operating system are you using?

macOS

Reproduction URL

https://github.com/TomerAberbach/tailwindcss-intellisense-repro

Describe your issue

https://github.com/TomerAberbach/tailwindcss-intellisense-repro/blob/main/index.jsx

// Intellisense works on this line
const a = <div className='' />

const b = <style dangerouslySetInnerHTML={{ __html: `#x > * {}` }} />

// Intellisense doesn't work on this line (delete `const b = ...` and it'll start working)
const c = <div className='flex' />
@bradlc
Copy link
Contributor

bradlc commented Mar 2, 2022

Hey @TomerAberbach, thanks for reporting! This should be fixed in the next release 👍

@TomerAberbach
Copy link
Author

Rad, thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants