Skip to content

Commit

Permalink
Fixed Component URLInput not honouring className
Browse files Browse the repository at this point in the history
Related: WordPress#13754
This pull request fixes the URIInput Component not honouring. This add the className to the parent div for the component
  • Loading branch information
ashwin-pc authored Feb 9, 2019
1 parent a59aaf2 commit e42f775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/url-input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ class URLInput extends Component {
}

render() {
const { value = '', autoFocus = true, instanceId } = this.props;
const { value = '', autoFocus = true, instanceId, className } = this.props;
const { showSuggestions, posts, selectedSuggestion, loading } = this.state;
/* eslint-disable jsx-a11y/no-autofocus */
return (
<div className="editor-url-input">
<div className={ classnames( 'editor-url-input', className ) }>
<input
autoFocus={ autoFocus }
type="text"
Expand Down

0 comments on commit e42f775

Please sign in to comment.