Anvil Extras: Quill, Link, Fix

This may be helpful to others. When a user clicks Link from the Quill Toolbar a dialog pops up as expected. If the user mouse clicks inside the dialog, perhaps to place the cursor, the dialog unexpectedly closes. The following fixed the issue for my scenario.

Changing the Quill Code from:

def click_guard(e):
    q = self._quill
    if not q.hasFocus():

to

    if not q.hasFocus() and e.srcElement.className == "ql-editor":
1 Like

thanks for raising, i’ve PRed a fix to anvil-extras: