Skip to content
New issue

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

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

Already on GitHub? # to your account

‘Bubble’模式下,当点击字体颜色设置按钮“A”的时候 会触发blur 事件,并且只在第一次点击的时候触发 #87

Closed
fashen007 opened this issue Sep 16, 2017 · 1 comment

Comments

@fashen007
Copy link

中文用户请注意:

  1. issue 只接受带重现的 bug 报告,请不要用来提问题!不符合要求的 issue 会被直接关闭。
  2. 请尽量用英文描述你的 issue,这样能够让尽可能多的人帮到你。
  3. 这里不是论坛不是贴吧,是针对问题本身的讨论区,不接受任何问题之外的东西。
  4. 在提出问题前,请仔细阅读REMADE.md并在已关闭的问题中寻找与自身相关的问题,它极有可能已经被解决。
  5. 问题请严格按照以下模板BUG REPORT TEMPLATE编写,禁止在标题中堆砌!

Got a question?

Reporting a bug?

  • Try to search for your issue, it may have already been answered or even fixed in the development branch.

  • It is required that you clearly describe the steps necessary to reproduce the issue you are running into. Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.

  • It is recommended that you make a JSFiddle/JSBin/Codepen to demonstrate your issue. You could start with this template that already includes the latest version of Vue.

  • For potential SSR (Server Side Rendering) issue or bugs that involves build setups, you can create a reproduction repository with steps in the README.

  • If your issue is resolved but still open, don’t hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it.

Have a feature request?

  • Remove the template from below and provide thoughtful commentary and code samples on what this feature means for your product. What will it allow you to do that you can't do today? How will it make current work-arounds straightforward? What potential bugs and edge cases does it help to avoid? etc. Please keep it product-centric.

BUG REPORT TEMPLATE

Vue.js version and component version

Reproduction Link

  • A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
  • You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce

设置为bubble类型,然后选中文字,设置字体颜色

What is Expected?

What is actually happening?

@fashen007 fashen007 changed the title 当点击字体颜色设置按钮“A”的时候 会触发onEditorBlur 事件,并且只在第一次点击的时候触发 ‘Bubble’模式下,当点击字体颜色设置按钮“A”的时候 会触发onEditorBlur 事件,并且只在第一次点击的时候触发 Sep 16, 2017
@fashen007 fashen007 changed the title ‘Bubble’模式下,当点击字体颜色设置按钮“A”的时候 会触发onEditorBlur 事件,并且只在第一次点击的时候触发 ‘Bubble’模式下,当点击字体颜色设置按钮“A”的时候 会触发blur 事件,并且只在第一次点击的时候触发 Sep 16, 2017
@surmon-china
Copy link
Owner

  1. 这个事件本身由 quill 的 selection-change api提供

  2. 经过测试,我这里的测试结果是,并非首次点击可编辑区外的元素才触发,而是任何时候只要焦点转移至可编辑区之外(包括工具栏),都会触发失焦事件,反之亦然

所以目前组件方面没有更好的解决方法,可以等待 quill 官方的后续优化。

相关:
slab/quill#1397

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

No branches or pull requests

2 participants