Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Bug when required data is removed #30

@aleksandervines

Description

@aleksandervines

If a user deletes input in one of the required fields, the next button is not greyed out.

I've fixed it in a branch on specify general information (I'll fix the other tabs and submit a PR when the profile-branch is ready). Or I can submit this individually if the other takes too long or isn't accepted.

I've solved it by instead of removing the button when exposing next, I add the class hideMe on the faux button. And of course add the class hideMe from next and remove hideMe from faux if required metadata is deleted.

    if (expose){
        $("#faux").addClass("hideMe");
        $(".jw-button-next").removeClass("hideMe");
    } else {
        $("#faux").removeClass("hideMe");
        $(".jw-button-next").addClass("hideMe");
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions