Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Horizontal radio buttons, page transition and losing ui-btn-active #5111

Closed
@SumoMobi

Description

@SumoMobi

Maybe this is by design, but I have to add the following event handler to my dialogs' page show event so that when the flow returns from another dialog, the original dialog shows the checked radio buttons as checked.

    $("div[data-role='dialog']").each(function ()
    {
        $(this).on('pageshow', function (evt, ui)
        {   //On page transition back to original page/dialog, horizontal radio boxes that are checked, do not look checked.
            $(this).find("input[type='radio']:checked").each(function ()
            {
                if ($(this).closest("fieldset").attr("data-type") == "horizontal")
                {  //A horizontal set of radio buttons.
                    $(this).closest("div").find("label[for]").addClass("ui-btn-active");
                }
            });
        });
    });

I tried class="ui-btn-active ui-state-persist" on the input tag, but that did not help.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions