mentions
mentions copied to clipboard
Pressing enter on not found causes a javascript error
- Go to https://react-component.github.io/mentions/?selectedKind=rc-mentions&selectedStory=dynamic&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Fsource%2Fpanel
- Type @dfadfdfadfdfadfdfdsfasd (or any string that won’t be found)
- Wait until it says Not Found
- Press enter
Initially it looks like https://github.com/react-component/mentions/blob/master/src/Mentions.tsx should check for a valid option
} else if (which === KeyCode.ENTER) { // Measure hit const option = this.getOptions()[activeIndex]; this.selectOption(option); event.preventDefault(); }
hi guys - any update regarding this issue ?