HTML attribute completion using curly brackets

Answered

Say im creating a new element.

<section></section>

Now im going to add a new attribute to the element.

<section data-test></section>

As soon as I add the '=' after 'data-test' it SHOULD create quotes for me to enter the value.

However, recently it has been creating {} instead. It is driving me absolutely insane. It used to work correctly. I can't find the setting to go back to the way it was.

Please help!

0
3 comments
Avatar
Permanently deleted user

Hello,

You need to change JavaScript language version in Settings | Languages & Frameworks | JavaScript from "React JSX" or "Flow" to ECMAScript or JavaScript.

This behavior will be fixed in one of the next updates according to https://youtrack.jetbrains.com/issue/WEB-28689.

0
Avatar
Permanently deleted user

I keep seeing this working with React, it's frustrating!!

0
Avatar
Permanently deleted user

Unfortunately, this has not been fixed, even in Webstorm 2017.3 

0

Please sign in to leave a comment.