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

Bug when required data is removed #30

Open
aleksandervines opened this issue Oct 12, 2016 · 0 comments
Open

Bug when required data is removed #30

aleksandervines opened this issue Oct 12, 2016 · 0 comments

Comments

@aleksandervines
Copy link

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");
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant