Disabled Publish button is clickable #13014
Labels
[Package] Editor
/packages/editor
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Describe the bug
As of #11543,
PostPublishButton
doesn't have adisabled
attribute anymore, but usesaria-disabled
instead. This is allowing to click on the button, when it shouldn't be possible (for example when the post content is empty).To Reproduce
Expected behavior
The Pre-publish checks sidebar shouldn't be opened since the Publish button is disabled. Furthermore, the "Publish" button displayed there is also disabled, but we can still click on it a save the post (note how the date change from "Immediately" to the current date).
Screenshots

Additional context
Issue found on Automattic/wp-calypso#29594 (props to @Copons).
The text was updated successfully, but these errors were encountered: