KillerCodeMonkey / ngx-quill

Angular (>=2) components for the Quill Rich Text Editor
MIT License
1.79k stars 262 forks source link

onBlur is falsely fired #1614

Closed krema closed 2 years ago

krema commented 2 years ago

I configured the toolbar to be outside of the editor:

<quill-editor (onBlur)="onBlur($event) "[modules]="{toolbar: '#toolbar'}"> </quill-editor>

When I click the toolbar formatting buttons, the onBlur event fires incorrectly. This doesn't happen with the default toolbar that resides within the editor.

Is this a bug within ngx-quill or in quill itself?

KillerCodeMonkey commented 2 years ago

I think it is more a quill thing. I am just wrapping the "selection changed" event of quill to evaluate if it is just a selection change or focus and blur.

Everytime the new range is null I trigger blur. If the old range is null, but not the current it is focus.

André Kremser @.***> schrieb am Sa., 15. Okt. 2022, 20:59:

I configured the toolbar to be outside of the editor:

<quill-editor (onBlur)="onBlur($event) "[modules]="{toolbar: '#toolbar'}">

When I click the toolbar formatting buttons, the onBlur event fires incorrectly. This doesn't happen with the default toolbar that resides within the editor.

Is this a bug within ngx-quill or in quill itself?

— Reply to this email directly, view it on GitHub https://github.com/KillerCodeMonkey/ngx-quill/issues/1614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARI4YDGPC2UIF5PUWZRJPTWDL5IFANCNFSM6AAAAAARGAVB44 . You are receiving this because you are subscribed to this thread.Message ID: @.***>