kendo-vue
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
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