meteor-autoform-semantic-ui icon indicating copy to clipboard operation
meteor-autoform-semantic-ui copied to clipboard

Label options generate incorrect markup

Open eoliphan opened this issue 9 years ago • 0 comments

Hi, I tried adding a leftLabel to a field and got the following:

<div class="ui labeled fluid input field required">   
      <label for="Y5WfHhnv2Cj2QQBr3">       
          Min raise amount       
      </label>

      <div class="ui label">$</div>

    <input type="number" name="minRaiseAmount" leftlabel="$" id="Y5WfHhnv2Cj2QQBr3" required="" data-schema-key="minRaiseAmount" max="2000000" min="50000">

  </div>

In reviewing the SUI docs, it looks like the 'ui labeled input' class needs to wrap the input and any pre or post labels as well as the input. The 'normal' field

I can try tackling this via a pull request.

eoliphan avatar Feb 24 '16 20:02 eoliphan