Skip to content

Commit

Permalink
fix(mention): Entering @ in the card will trigger the @ event
Browse files Browse the repository at this point in the history
  • Loading branch information
big-camel committed Jun 14, 2022
1 parent f23a6f0 commit f690f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/src/change/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class ChangeEvent implements ChangeEventInterface {
if (this.engine.readonly) return;
// safari 组合输入法会直接插入@字符,这里统一全部拦截输入@字符的时候再去触发@事件
const { change, card, node, block, list } = this.engine;
if (event.data === '@') {
if (event.data === '@' && !this.isCardInput(event)) {
// 如果没有要对 @ 字符处理的就不拦截
const result = this.engine.trigger('keydown:at', event);
if (result === false) {
Expand Down

0 comments on commit f690f43

Please sign in to comment.