Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Custom close callback is called with any hyperlink, _websockets always null

Open dmenezesgabriel opened this issue 4 years ago • 0 comments

Eel version 0.14.0

Describe the bug When a custom_callback function is defined on start and some link or button tag is clicked, the close_callback is called and the _websockets list is always empty, so the application is terminated.

To Reproduce Steps to reproduce the behavior:

  1. Get the hello world example
  2. Put a <a href=“Click me”> anywhere
  3. Define a close callback function:
def close_callback(route, websockets):
    print(websockets)
    if not websockets:
        exit()

Expected behavior Clicking on anchor links or buttons shouldn’t send a close_callback.

Desktop:

  • OS: Windows 11
  • Browser: Chrome
  • Version 95

dmenezesgabriel avatar Nov 18 '21 19:11 dmenezesgabriel