kendo-vue icon indicating copy to clipboard operation
kendo-vue copied to clipboard

[Bug][Checkbox] The value property of the Checkbox can be set to a string value, but it is not being added to the input element

Open kdikov82 opened this issue 1 year ago • 0 comments

As documented here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#value_2 , it should be possible to set the "value" of the "input" element with type "checkbox" to any string value and when a form is submitting, the value from that input should be in the following format if checked:

<form>
  <div>
    <input
      type="checkbox"
      id="subscribeNews"
      name="subscribe"
      value="newsletter" />
    <label for="subscribeNews">Subscribe to newsletter?</label>
  </div>
  <div>
    <button type="submit">Subscribe</button>
  </div>
</form>

=>> subscribe=newsletter

Currently, the Checkbox does not set the "value" property to the input element and it returns the default "on" value

kdikov82 avatar Nov 25 '23 16:11 kdikov82