Skip to content

react-bootstrap-typeahead: How to get attribute value on “OnChange” , I am using Typeahead in table cell #651

@johnmcclanes001

Description

@johnmcclanes001

I am using react-bootstrap-typeahead in table row for invoice items.

my json is like [{record_id:1,value="value1"},{record_id:2,value="value2"}] on this basis I am creating bootstrap table. in table cell I am adding typeahead select box to change the value and update my json,

when I change the value I want to update my json array with latest value in related record. But as in onChange we only get selected array not an event object so, I am not able to find record id.

Please suggest me good solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions