Skip to content

non integer ID #38

@moparlakci

Description

@moparlakci

Hello

I have long unique ID's for my items as strings, like "af0aa000-2778-11eb-9d0e-0f95b229692e"

This doesn't work with your component because of this code. (parseInt)

handleSelect(e) {

 let element = e.currentTarget.children[0]

 let item = {
  id: parseInt(element.dataset.id),
  value: element.innerHTML.replace(/&/g, '&')
 }

 this.selectMenuItem(item)

}

Any possibility to change this to without parseInt?

Thx

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