Skip to content

onSelected event not being called  #116

Open
@porteron

Description

@porteron

When selecting a region on the <Plot> the onSelected event is not firing. Other events such as onUpdate and onClick work.

Plot Component:

            <Plot
                onSelected={(data) => this.setTotalData(data)}
                layout={layout}
                useResizeHandler={true}
                style={{ width: "100%", height: "100%" }}
                data={data}
            />

Function to be called:

    setTotalData = (data) => {
        console.log("Selected Data: ", data)
    }

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