Skip to content

Commit

Permalink
Revert "[RNMobile] Disable block's touchable component when is focused (
Browse files Browse the repository at this point in the history
#49691)"

This reverts commit b310e49.
  • Loading branch information
fluiddot authored Apr 20, 2023
1 parent faa4899 commit d9264eb
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class BlockListBlock extends Component {
order + 1
);
const { isFullWidth, isContainerRelated } = alignmentHelpers;
const isFocused = isSelected || isInnerBlockSelected;
const accessible = ! ( isSelected || isInnerBlockSelected );
const screenWidth = Math.floor( Dimensions.get( 'window' ).width );
const isScreenWidthEqual = blockWidth === screenWidth;
const isScreenWidthWider = blockWidth < screenWidth;
Expand All @@ -224,9 +224,8 @@ class BlockListBlock extends Component {
return (
<TouchableWithoutFeedback
onPress={ this.onFocus }
accessible={ ! isFocused }
accessible={ accessible }
accessibilityRole={ 'button' }
disabled={ isFocused }
>
<View
style={ { flex: 1 } }
Expand Down

0 comments on commit d9264eb

Please sign in to comment.