code: function onAutofill(ev) {
      const field = ev.currentTarget
      if (ev.animationName === 'mhFillStart') {
          $.dispatch(field, 'filled')
      } else if (ev.animationName === 'mhFillCancel') {
          if (field.value === '') {
              $.dispatch(field, 'empty')
          } else {
              $.dispatch(field, 'filled')
          }
      }
  }
docs: Handle the autofill events on Chrome (captured via animations)