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 a9119f6 commit 3278a35
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 @@ -100,7 +100,7 @@ const BindingConnector = ( {
const { name: blockName } = blockProps;
const attrValue = blockProps.attributes[ attrName ];

const updateBoundAttibute = useCallback(
const updateBoundAttribute = useCallback(
( newAttrValue, prevAttrValue ) => {
/*
* If the attribute is a RichTextData instance,
Expand Down Expand Up @@ -134,7 +134,7 @@ const BindingConnector = ( {

useLayoutEffect( () => {
if ( typeof propValue !== 'undefined' ) {
updateBoundAttibute( propValue, attrValue );
updateBoundAttribute( propValue, attrValue );
} else if ( placeholder ) {
/*
* Placeholder fallback.
Expand All @@ -147,14 +147,14 @@ const BindingConnector = ( {
getBlockType( blockName ).attributes[ attrName ].attribute;

if ( htmlAttribute === 'src' || htmlAttribute === 'href' ) {
updateBoundAttibute( null );
updateBoundAttribute( null );
return;
}

updateBoundAttibute( placeholder );
updateBoundAttribute( placeholder );
}
}, [
updateBoundAttibute,
updateBoundAttribute,
propValue,
attrValue,
placeholder,
Expand Down

0 comments on commit 3278a35

Please sign in to comment.