form help check for a currentFormItem

A test page for Uncaught TypeError.

Uncaught TypeError: Cannot read property 'setAttribute' of undefined at HTMLDocument.formHelpDocumentClickHandler (full.js:2150)

To reproduce

  1. Change _form-help.js

    In function formHelpDocumentClickHandler change

    if (currentFormItem !== undefined && (e.target.form !== currentForm || document.activeElement !== e.target)) {

    to

    if ((e.target.form !== currentForm || document.activeElement !== e.target)) {

  2. Tick the checkbox
  3. Untick the checkbox
Worth checking in Chrome, Firefox doesn't necessarily error.

The checkbox