Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Apr 13, 2024
1 parent d33c714 commit 12b973d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/block-editor/src/hooks/use-bindings-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const BindingConnector = ( {
* @param {string} current - The current attribute value.
* @return {void}
*/
const updateBoundAttibute = useCallback(
const updateBoundAttribute = useCallback(
( next, current ) =>
onPropValueChange( {
[ attrName ]: castValue( next, current ),
Expand All @@ -164,7 +164,7 @@ const BindingConnector = ( {
prevPropValue.current = propValue;

if ( propValue !== rawAttrValue ) {
updateBoundAttibute( propValue, attrValue );
updateBoundAttribute( propValue, attrValue );
return; // close the sync cycle.
}
}
Expand All @@ -180,11 +180,11 @@ const BindingConnector = ( {
getBlockType( blockName ).attributes[ attrName ].attribute;

if ( htmlAttribute === 'src' || htmlAttribute === 'href' ) {
updateBoundAttibute( null );
updateBoundAttribute( null );
return; // close the sync cycle.
}

updateBoundAttibute( placeholder );
updateBoundAttribute( placeholder );
return; // close the sync cycle.
}

Expand All @@ -198,7 +198,7 @@ const BindingConnector = ( {
updatePropValue( rawAttrValue );
}
}, [
updateBoundAttibute,
updateBoundAttribute,
propValue,
placeholder,
blockName,
Expand Down

0 comments on commit 12b973d

Please sign in to comment.