You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected: to have the entire snippet marked as a comment block.
Actual: only the lines stated are identified as such.
{/*{options.map((button: { label: string }, index: any) => (*/}
{/* <div*/}
{/* className={`toggle toggle__opt--${button.label}`}*/}
{/* key={`${button.label}-${index}`}*/}
{/* onClick={() =>*/}
{/* handleButtonsChange(button.label)*/} <------- THIS IS COMMENTED CODE
{/* }*/}
{/* >*/}
{/* {button.label.toUpperCase()}*/} <------- THIS IS COMMENTED CODE
{/* </div>*/}
{/*))}*/}
This happens because all comments in JSX are multiline and we only combine single-line comments to a block. Combining multiline comments, at least inside JSX, shuld resolve it.
Do you want me to submit a PR for that?
The text was updated successfully, but these errors were encountered:
Expected: to have the entire snippet marked as a comment block.
Actual: only the lines stated are identified as such.
This happens because all comments in JSX are multiline and we only combine single-line comments to a block. Combining multiline comments, at least inside JSX, shuld resolve it.
Do you want me to submit a PR for that?
The text was updated successfully, but these errors were encountered: