You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use case: when we have a boolean property to bind in a component. The expectation is that if we don't bind the value the getBound() method in the view model should return undefined. but vue casts boolean values from undefined to false.
but in the case of n-app we create our own components. so the expectation is that when we don't provide a value for boolean attributes getBound() should return undefined
The text was updated successfully, but these errors were encountered:
Use case: when we have a boolean property to bind in a component. The expectation is that if we don't bind the value the
getBound()
method in the view model should return undefined. but vue casts boolean values from undefined to false.vuejs/vue#4792
Vue does this to support HTML attributes. for example if we don't set the disabled attribute in an input element that means disabled = false. this behavior is documented in vue 3 https://vuejs.org/guide/components/props.html#boolean-casting
but in the case of n-app we create our own components. so the expectation is that when we don't provide a value for boolean attributes
getBound()
should return undefinedThe text was updated successfully, but these errors were encountered: