title: ASP.NET MVC @html.editorfor acts like required and i want it to be not required
body: <pre><code>&lt;div class=&quot;box-cell box1&quot;&gt;
  &lt;div class=&quot;wrap-input100 validate-input&quot;&gt;
  @Html.LabelFor(model =&gt; model.Bags_Per_Valve, htmlAttributes: new { @class = &quot;label-input101&quot; })
  @Html.EditorFor(model =&gt; model.Bags_Per_Valve, new { htmlAttributes = new { @class = &quot;form-control&quot;, @type = &quot;number&quot;, @min = &quot;1&quot;, @name = &quot;Bags&quot; } })
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>