Use another method to disable save button
Use
wp.data.dispatch( 'core/editor' ).lockPostSaving
to lock the save button instead of querySelector since classes may change.
Thanks to Christofer H for the found :)
Use
wp.data.dispatch( 'core/editor' ).lockPostSaving
to lock the save button instead of querySelector since classes may change.
Thanks to Christofer H for the found :)