InlineEditableTextfield - unexpected behaviour

It can be reproduced even with the examples in the documentation:
Inline editable textfield - Examples - Components - Atlassian Design System
Click on the inline edit > write something > cancel, and then on the next click, there’s your written text in the edit view. Which is unexpected; the edit view should be consistent with the read view.