Semantic-Org / Semantic-UI-React

The official Semantic-UI-React integration
https://react.semantic-ui.com
MIT License
13.2k stars 4.04k forks source link

Form.Group is not accepting `error` flag #4434

Closed felixmosh closed 10 months ago

felixmosh commented 12 months ago

Bug Report

Semantic ui css supports putting an error class on .fields image

Steps

<div class="ui form">
  <div class="error inline fields">
    <div class="field">
        <label>Phone Number</label>
    </div>
    <div class="field">
      <input type="text" placeholder="(xxx)">
    </div>
    <div class="field">
      <input type="text" placeholder="xxx">
    </div>
  </div>
</div>

Expected Result

It should allow to pass error prop

Actual Result

it not allows error prop

Version

2.4.1

Testcase

https://jsfiddle.net/nedr1z8m/