11

Bug report:

Create a code snippet and try and use optional chaining. Click Tidy and see it add erroneous spaces to the code around the ? in the optional chaining portion.

//optional chainging syntax

document.querySelector('#foo')?.click();

//After tidy:

document.querySelector('#foo') ? .click();

// Syntax error!

2

0

Browse other questions tagged .