Skip to content

Commit

Permalink
updated return value, fix issue for tablet/mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Jun 15, 2023
1 parent 21a5b17 commit f93c474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/block-components/helpers/size/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ const Styles = props => {
attrNameTemplate={ attrNameTemplate }
responsive="all"
hasUnits="px"
valueCallback={ ( value, getAttribute ) => {
const blockWidth = getAttribute( 'width' )
return blockWidth ? 'inherit' : ''
valueCallback={ ( value, getAttribute, device ) => {
const blockWidth = getAttribute( 'width', device )
return blockWidth ? 'inherit' : undefined
} }
/>
<BlockCss
Expand Down

0 comments on commit f93c474

Please sign in to comment.