Skip to content

Commit

Permalink
[RNMobile] Search Block: Unit Tests (#30511)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmandaRiu authored Apr 5, 2021
1 parent cf2da33 commit 22f2be9
Show file tree
Hide file tree
Showing 3 changed files with 812 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/block-library/src/search/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function SearchEdit( {
onFocus();
} }
onBlur={ () => setIsPlaceholderSelected( false ) }
placeholderTextColor={ placeholderStyle.color }
placeholderTextColor={ placeholderStyle?.color }
/>
</View>
);
Expand Down Expand Up @@ -271,7 +271,9 @@ export default function SearchEdit( {
onBlur={ () => {
setIsButtonSelected( false );
} }
selectionColor={ styles.richTextButtonCursor.color }
selectionColor={
styles.richTextButtonCursor?.color
}
/>
</View>
) }
Expand Down Expand Up @@ -318,7 +320,7 @@ export default function SearchEdit( {
onBlur={ () => {
setIsLabelSelected( false );
} }
selectionColor={ styles.richTextButtonCursor.color }
selectionColor={ styles.richTextButtonCursor?.color }
/>
</View>
) }
Expand Down
Loading

0 comments on commit 22f2be9

Please sign in to comment.