-
Notifications
You must be signed in to change notification settings - Fork 124
3798 When deleting data pill in the mention input, '@' shows up instead of '$' #3799
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
Conversation
ivicac
commented
Dec 23, 2025
- 3798 client - Fix when deleting data pill in the mention input, '@' shows up instead of '$'
- 0 client - Remove "@tiptap/*" from npm reject list in .ncurc.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an issue where deleting a data pill (mention) in the mention input leaves behind an '@' character instead of the expected '$' character. The fix adds a custom ProseMirror plugin that intercepts transactions and replaces '@' with '$' when detected. Additionally, the PR improves ref handling by using useEffect and removes "@tiptap/*" from the npm reject list to allow tiptap package updates.
Key Changes
- Adds a
MentionBackspaceFixProseMirror plugin that detects and replaces '@' characters with '$' after mention deletion - Refactors ref assignment to use React's
useEffecthook for proper lifecycle management - Adds comprehensive test coverage for the backspace behavior across TEXT, TEXT_AREA, and RICH_TEXT control types
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| PropertyMentionsInputEditor.tsx | Adds Plugin import, implements MentionBackspaceFix extension, and refactors ref handling to use useEffect |
| PropertyMentionsInput.test.tsx | Adds test coverage for backspace behavior with mentions across different control types |
| .ncurc.json | Removes "@tiptap/*" from npm upgrade reject list to allow tiptap package updates |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...tor/components/properties/components/property-mentions-input/PropertyMentionsInputEditor.tsx
Outdated
Show resolved
Hide resolved
...tor/components/properties/components/property-mentions-input/PropertyMentionsInputEditor.tsx
Outdated
Show resolved
Hide resolved
kresimir-coko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moran ovo sam isprobati, ne sviđa mi se ova implementacija nikako
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ivicac Nikako mi se ne sviđa ova implementacija, izgleda mi prekompleksno za ono šta postiže. Plus, ovo je nekakav bug radi nove verzije, nismo imali ovaj problem prije.
Jel ti okej da dodamo deleteTriggerWithBackspace: true tako da se samo izbriše trigger ($ ili @) kad se obriše datapill? Barem za prvu ruku dok ne smislimo pametnije rješenje (ili tiptap popravi bug)
|


