giorgosart / react-easy-edit

Inline editing library for React
https://giorgosart.gitbook.io/react-easy-edit/
MIT License
252 stars 46 forks source link

Retrieving the dropdown attribute name when saving #71

Closed jonbondani closed 4 years ago

jonbondani commented 4 years ago

Hi, is there any way to get the attribute's name when saving? I have many EasyEdit components in a single page and when trying to save the value I need the attribute's name as well. Thanks.

jonbondani commented 4 years ago

Done, it was as easy as: onSave={value => { this.save(value,key) }}

giorgosart commented 4 years ago

Glad you figured it out!