Augmentor widget has 3 event listeners

Created on 28 July 2023, 11 months ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

On Drupal 9.5.10, CKEditor5, If I add "Augmentor Default Widget" to a content type node add form I see 3 event listeners attached to the Augmentor button (see screenshot) and 3 POST XHR requests are generated when the button is clicked. The XHR wait icon appears and is not removed.

Steps to reproduce

1. Enable Augmentor, Key, an Augmentor plugin such as NLPCloud Keyword extraction, enable for text format e.g. basic_html and add a field with "Augmentor Default Widget" to a content type. Open node add form for the appropriate content type. Inspect the button for javascript event listeners and/or XHR network requests.

Proposed resolution

Apply once() or similar debounce when subscribing event listeners?

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand jonathan_hunt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jonathan_hunt
  • Status changed to Closed: cannot reproduce about 2 months ago
  • πŸ‡―πŸ‡΅Japan eleonel Itoshima πŸ‡―πŸ‡΅

    I can't replicate the issue using the latest version of the module. We refactored and improved the JS event handlers in the past months so we may fixed this already.

Production build 0.69.0 2024