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?

Comments

jonathan_hunt created an issue. See original summary.

eleonel’s picture

Status: Active » Closed (cannot reproduce)
StatusFileSize
new101.76 KB

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.

event handlers