Topic on Extension talk:LegalLogin

Bug: not possible to click when the policy contains a table of contents

3
Summary by X-Savitar

patch +2'd and merged.

Seb35 (talkcontribs)

(I’m not sure it is the right place to declare a bug.)

When one of the policy contains a table of contents, the button to confirm that all policies are accepted never becomes clickable.

The cause is in modules/policyField.js where the number of policies is determined by $policyCheckboxes = $( '.legal-login-field input[type=checkbox]' ) and the TOC contains an input of type checkbox since MediaWiki 1.32 (commit).

This can be solved by changing the jQuery expression by a stricter one $policyCheckboxes = $( '.legal-login-field > div.mw-ui-checkbox input[type=checkbox]' ).

Seb35 (talkcontribs)
X-Savitar (talkcontribs)

@Seb35, I've +2'd the change. Thanks! I'll go ahead and resolve this now.