Skip to content

Commit

Permalink
Search block: Display placeholder in 'placeholder' attribute, not 'va…
Browse files Browse the repository at this point in the history
…lue'
  • Loading branch information
noisysocks committed Feb 1, 2019
1 parent d87c67d commit 154cddc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/search/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export default function SearchEdit( { className, attributes, setAttributes } ) {
<input
className="wp-block-search__input"
aria-label={ __( 'Optional placeholder text' ) }
placeholder={ __( 'Optional placeholder…' ) }
value={ placeholder }
placeholder={ placeholder || __( 'Optional placeholder…' ) }
onChange={ ( event ) => setAttributes( { placeholder: event.target.value } ) }
/>
<RichText
Expand Down

0 comments on commit 154cddc

Please sign in to comment.