Skip to content

Commit bc043f4

Browse files
committed
minor #1272 Update index.rst (nieck)
This PR was merged into the 2.x branch. Discussion ---------- Update index.rst This is a small improvement of a code-example in the documentation. Commits ------- 003353d Update index.rst
2 parents 0ee7a2d + 003353d commit bc043f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Autocomplete/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ events that the core Stimulus controller dispatches:
351351
352352
disconnect() {
353353
// You should always remove listeners when the controller is disconnected to avoid side-effects
354-
this.element.removeEventListener('autocomplete:pre-connect', this._onConnect);
355-
this.element.removeEventListener('autocomplete:connect', this._onPreConnect);
354+
this.element.removeEventListener('autocomplete:connect', this._onConnect);
355+
this.element.removeEventListener('autocomplete:pre-connect', this._onPreConnect);
356356
}
357357
358358
_onPreConnect(event) {

0 commit comments

Comments
 (0)