fix arrow functions auto-closing JSX tag #10

Closed
szymonkaliski wants to merge 1 commit from patch-1 into main
szymonkaliski commented 2023-04-04 18:33:33 +02:00 (Migrated from github.com)

Currently writing:

<button onClick={()= } />

and typing > to the right of = incorrectly auto-closes the tag to:

<button onClick={()=></button> } />

this PR fixes this behavior.

Currently writing: ```jsx <button onClick={()= } /> ``` and typing `>` to the right of `=` incorrectly auto-closes the tag to: ```jsx <button onClick={()=></button> } /> ``` this PR fixes this behavior.
marijnh commented 2023-04-05 13:56:22 +02:00 (Migrated from github.com)

Thanks for looking into that. I've pushed a somewhat more general patch instead that also fixes it.

Thanks for looking into that. I've pushed a somewhat more general patch instead that also fixes it.
szymonkaliski commented 2023-04-06 19:02:36 +02:00 (Migrated from github.com)

awesome, thanks! any chance this could be published?

awesome, thanks! any chance this could be published?

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-javascript!10
No description provided.