Skip to content

Commit b675a1f

Browse files
committed
minor #1258 [Doc] Fix preConnect/connect inversion in "disconnect()" doc examples (smnandre)
This PR was merged into the 2.x branch. Discussion ---------- [Doc] Fix preConnect/connect inversion in "disconnect()" doc examples Following symfony/ux#1227 i found other similar cases of callback inversion in the documentation. Commits ------- 3f8218f5 Fix preConnect/connect inversion in "disconnect()" doc examples
2 parents 83e96dc + 4fcc24e commit b675a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ custom Stimulus controller:
106106
107107
disconnect() {
108108
// You should always remove listeners when the controller is disconnected to avoid side effects
109-
this.element.removeEventListener('cropperjs:pre-connect', this._onConnect);
110109
this.element.removeEventListener('cropperjs:connect', this._onConnect);
110+
this.element.removeEventListener('cropperjs:pre-connect', this._onPreConnect);
111111
}
112112
113113
_onPreConnect(event) {

0 commit comments

Comments
 (0)