Skip to content

Commit

Permalink
Chacnge selectBlock action default initialPosition value to retain ba…
Browse files Browse the repository at this point in the history
…ckward compatibility
  • Loading branch information
youknowriad committed Feb 10, 2021
1 parent 0ba720c commit 9f617c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export function updateBlock( clientId, updates ) {
*
* @return {Object} Action object.
*/
export function selectBlock( clientId, initialPosition = null ) {
export function selectBlock( clientId, initialPosition = 0 ) {
return {
type: 'SELECT_BLOCK',
initialPosition,
Expand Down

0 comments on commit 9f617c3

Please sign in to comment.