A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/issues/1701 below:

[MdCheckbox] Checkbox boolean model with default value of null · Issue #1701 · vuematerial/vue-material · GitHub

I want the ability to specify the true-value and false-value as boolean when the initial (default) value for the model for checkbox is null

Steps to reproduce
<md-checkbox v-model="field">Approved?</md-checkbox>
{{field}}
Which browser?

Chrome

What is expected?

When the default value is 'null' after checking the checkbox it becomes 'on'
I want the ability to specify that when the checkbox is checked, the value in model should be 'true' and when further unchecked it should be false.
In other words I want the v-bind:true-value and v-bind:false-value to work correctly with md-checkbox

What is actually happening?

md-checkbox is dynamically setting the value in model by checking the type of binding.

Reproduction Link

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4