Skip to content

Commit

Permalink
Added a placeholder to the product search block editor (woocommerce#5122
Browse files Browse the repository at this point in the history
)

* Added a placeholder to the product search block editor to indicate that the user can change the placeholder on the front end

* Changed the placeholder to be translatable
  • Loading branch information
alexflorisca authored and jonny-bull committed Dec 14, 2021
1 parent e2405d5 commit 7001544
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/blocks/product-search/edit.js
Expand Up @@ -104,6 +104,10 @@ const Edit = ( {
<TextControl
className="wc-block-product-search__field input-control"
value={ placeholder }
placeholder={ __(
'Enter search placeholder text',
'woo-gutenberg-products-block'
) }
onChange={ ( value ) =>
setAttributes( { placeholder: value } )
}
Expand Down

0 comments on commit 7001544

Please sign in to comment.