1

How do I create an indeterminate checkbox in virtual hyperscript?

h('input', {
  type: 'checkbox', 
  checked: data.state === 'checked', 
  indeterminate: data.state === 'indeterminate'
})

will not work, as indeterminate is a property not an attribute.

P Varga
  • 19,174
  • 12
  • 70
  • 108

0 Answers0