code: function onChange(ev) {
      const field = ev.currentTarget
      if (field.value === '') {
          $.dispatch(field, 'empty')
      } else {
          $.dispatch(field, 'filled')
      }
  }
docs: -- Event handlers -- 
  Handle the contents of a field changing