From 0f2462c7e892331728ba82478ed1adf6048470a7 Mon Sep 17 00:00:00 2001 From: 1shaked <40497915+1shaked@users.noreply.github.com> Date: Sun, 21 Apr 2024 13:50:39 +0300 Subject: [PATCH] Update Mention.js added the start and end position which is giving --- src/Mention.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mention.js b/src/Mention.js index 36bdc687..9ad3dc33 100644 --- a/src/Mention.js +++ b/src/Mention.js @@ -18,8 +18,8 @@ Mention.propTypes = { * Example: * * ```js - * function(id, display) { - * console.log("user " + display + " was mentioned!"); + * function(id, display, start, end) { + * console.log("user " + display + " was mentioned!" + " [start, end ]" + [start , end]); * } * ``` */