Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding onChangePartsData event #43

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

DeniferSantiago
Copy link

The proposed event is useful when you need to get more data than the name and id of the mentions or any partType that the trigger property sets.

In my case I needed to save the mentions in a separate field in the database for query purposes. He also needed to get other information from the mentioned user. This implementation allows handling this case simply by listening to the onChangePartsData event, it also allows passing a default value or initial value which is useful in case you want to modify the value previously generated by a MentionInput.

The new implementation does not affect the existing behavior of the package and was tested in a separate project as I was unable to implement the render tests in this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant