Skip to content

Unable to enable Apply Button for delaySaveSlices while modifying controls #21

@rad10wave

Description

@rad10wave

I am encountering an issue with the delaySaveSlices functionality in a group that includes a slider, color picker, and text area. Sometimes, when I modify the values of these components, the "Apply" button does not get enabled as expected.

Here's an example:
delaySaveSlices

Here's the sample code of my FormattingGroup :

const groups: powerbi.visuals.FormattingGroup = {
        displayName: "",
        uid: `datacard_groups`,
        delaySaveSlices: true,
        slices: [
            {
                displayName: "Text",
                description: "",
                uid: `datacard_groups_text`,
                control: {
                    type: FormattingComponent.TextArea,
                    properties: {
                        placeholder: "Text",
                        descriptor: {
                            objectName: "groups",
                            propertyName: `text`,
                        },
                        value: settings.groups.text,
                    },
                },
            },
            {
                displayName: "Color",
                description: "",
                uid: `datacard_groups_color`,
                control: {
                    type: FormattingComponent.ColorPicker,
                    properties: {
                        descriptor: {
                            objectName: "groups",
                            propertyName: `color`,
                        },
                        value: { value: settings.groups.text},
                    },
                },
            },
            ...
            {
                displayName: "Opacity",
                description: "",
                uid: "datacard_groups_opacity",
                control: {
                    type: FormattingComponent.Slider,
                    properties: {
                        descriptor: {
                            objectName: "groups",
                            propertyName: "opacity",
                        },
                        value: settings.groups.opacity,
                        options: {
                            maxValue: {
                                type:  powerbi.visuals.ValidatorType.Max,
                                value: 100,
                            },
                            minValue: {
                                type:  powerbi.visuals.ValidatorType.Min,
                                value: 1,
                            },
                        },
                    },
                }
            }
        ],
    };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions