Skip to content

Commit

Permalink
Block Editor: Lock all templates while zoomed.
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Jul 14, 2019
1 parent fab407a commit 9928699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,10 @@ export function getTemplate( state ) {
* @return {?string} Block Template Lock
*/
export function getTemplateLock( state, rootClientId ) {
if ( getZoomedBlockClientIds( state ) ) {
return 'all';
}

if ( ! rootClientId ) {
return state.settings.templateLock;
}
Expand Down

0 comments on commit 9928699

Please sign in to comment.