custom-elements-everywhere icon indicating copy to clipboard operation
custom-elements-everywhere copied to clipboard

Vue does not handle prop named value well

Open sidharthramesh opened this issue 3 years ago • 0 comments

Setting value as property on a custom element fails. It gets passed as a string [Object Object] instead.

<custom-element :value.prop="message"></custom-element>
new Vue({
  el: '#app',
  data: {
       message: {'hello': 'world'}
  }
})

Codepen to reproduce: https://codepen.io/tornadoalert/pen/rNjVzbd

sidharthramesh avatar Mar 24 '21 09:03 sidharthramesh