Custom Fields
Re-Envisioned
Support Meta Box Conditional Logic Conditional Logic not hidden in collapsible group.

  • Creator
    Topic
  • #8313
    Resolved wptriad
    Participant

    If a field with a conditional logic is displayed when the condition is true, when you collapse its parent group, it won’t be hidden because its inline styles override CSS rules of the collapsible group.

    When expanded: https://imgur.com/UfXdcLY
    When collapse: https://imgur.com/jCFhxnZ

    Hope you will find time to fix this.
    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #8314
    wptriad
    Participant

    I just found 2 more issues:

    – When click “Add more” button to add a new group, the “Categories Select” field will be hidden (although the condition stays true). The “Categories Select” field is a conditional field of the button group above.

    – When click “Update” to update post, the button group “Posts Source” of the second last group (second group from bottom) isn’t saved (it’s kind of a value reset because the value has been saved before).

    Below is the code for registering meta boxes:

    https://pastebin.com/sZWP3rrd

    #8433
    wptriad
    Participant

    With latest update, the first issue is gone. For the 2nd and 3rd issue, I think it’s the button group’s bug, since when I change to a dropdown select there’s no problem.

    #8454
    Anh Tran
    Keymaster

    Hello, can you describe the steps you get the bugs 2 and 3?

    #8460
    npp
    Participant
    #8461
    wptriad
    Participant

    Here’s the steps: https://imgur.com/rL6N1dt

    Here’s the code for registering meta boxes: https://pastebin.com/kwbmKaLV

    I also tested the image_select field and it kind of had the same bugs.

    #8479
    Anh Tran
    Keymaster

    Hi, I’ve just tested the code. Sometimes the bug occurs, sometimes doesn’t. I’ll keep tracking on that.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.