Semantic-ui-react: Cannot pass `name` props to Search component

Created on 10 Mar 2017  路  2Comments  路  Source: Semantic-Org/Semantic-UI-React

Passing prop name to Search should set it as an attribute to the <input>, not the <div>.

Code

<Search name="foo" />

Expected Result

<div class="ui fluid search">
  <div class="ui icon input">
    <input name="foo" type="text" placeholder="Name" value="" class="prompt" tabindex="0" autocomplete="off">
...

Actual Result

<div name="foo" class="ui fluid search">
  <div class="ui icon input">
    <input type="text" placeholder="Name" value="" class="prompt" tabindex="0" autocomplete="off">
...

Version

0.63.5

enhancement

Most helpful comment

Hello. What about Dropdown? The same as with search, will be great to pass name attribute

All 2 comments

@ivosabev Thanks for report 馃憤 I've made PR for this.

Hello. What about Dropdown? The same as with search, will be great to pass name attribute

Was this page helpful?
0 / 5 - 0 ratings

Related issues

laukaichung picture laukaichung  路  3Comments

KevinGorjan picture KevinGorjan  路  3Comments

SajagTiwari picture SajagTiwari  路  3Comments

mattmacpherson picture mattmacpherson  路  3Comments

ryanpcmcquen picture ryanpcmcquen  路  3Comments