Skip to content

react-multi-level-selector selects the wrong input in some cases.  #4

Description

@aishwaryashukla

Hi,

I was using react-multi-level-selector and in some cases I found its selecting the wrong input.

how to reproduce the case:

use below options and choose FRM->ALL->2 and it will select PTE->ALL->2.
const options1 = [
{
"value": "PTE",
"label": "PTE",
"options": [
{
"value": "ALL",
"label": "ALL",
"options": [
{
"value": "2",
"label": "2"
},
{
"value": "3",
"label": "3"
}
]
}
]
},
{
"value": "FRM",
"label": "FRM",
"options": [
{
"value": "ALL",
"label": "ALL",
"options": [
{
"value": "2",
"label": "2"
},
{
"value": "3",
"label": "3"
}
]
},
{
"value": "Probability",
"label": "Probability",
"options": [
{
"value": "2",
"label": "2"
},
{
"value": "3",
"label": "3"
}
]
}
]
}
]

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