didInsertElement() {
		this._super(...arguments);

		$modal = $("#universal-modal");

		// When the user clicks anywhere outside of the modal, close it
		$modal.off("click").click(event => {
			if (event.target == $modal[0]) {
				$modal.hide();
			}
		});
	}
// After the element has been inserted into the DOM
After the element has been inserted into the DOM
After the element has been inserted into the DOM
didInsertElement() {
		this._super(...arguments);
		$modal = $("#universal-modal");
		$modal.off("click").click(event => {
			if (event.target == $modal[0]) {
				$modal.hide();
			}
		});
	}
didInsertElement ( ) { this . _super ( ... arguments ) ; $modal = $ ( "#universal-modal" ) ; $modal . off ( "click" ) . click ( event => { if ( event . target == $modal [ 0 ] ) { $modal . hide ( ) ; } } ) ; }
After the element has been inserted into the DOM
After the element has been inserted into the DOM
// When the user clicks anywhere outside of the modal, close it