Johani
(Joe)
October 14, 2018, 3:51am
11
Your usage of the class modal-body is interfering with some logic in some select-kit helpers.
The equivalent of $(".modal-body").length
this._previousScrollParentOverflow = null;
this._previousCSSContext = null;
this.selectionSelector = ".choice";
this.filterInputSelector = ".filter-input";
this.rowSelector = ".select-kit-row";
this.collectionSelector = ".select-kit-collection";
this.headerSelector = ".select-kit-header";
this.bodySelector = ".select-kit-body";
this.wrapperSelector = ".select-kit-wrapper";
this.scrollableParentSelector = ".modal-body";
this.fixedPlaceholderSelector = `.select-kit-fixed-placeholder-${
this.elementId
}`;
},
$findRowByValue(value) {
return this.$(`${this.rowSelector}[data-value='${value}']`);
},
$header() {
is used in a few conditionals. In your case, it will always return true since you’re adding an element with that class in your theme which always exists.
this.setProperties({ isBelow: false, isAbove: true });
options.bottom = headerHeight + this.get("verticalOffset");
}
this.$body().css(options);
},
_applyFixedPosition() {
if (this.get("isExpanded") !== true) return;
if (this.$fixedPlaceholder().length) return;
if (!this.$scrollableParent().length) return;
const width = this._computedStyle(this.get("element"), "width");
const height = this._computedStyle(this.get("element"), "height");
this._previousScrollParentOverflow =
this._previousScrollParentOverflow ||
this.$scrollableParent().css("overflow");
this._previousCSSContext = this._previousCSSContext || {
width,
I would advise against using that class. The simplest option is to add your own custom class and add the styles for modal-body to it.
So instead of
<div id="evesde-modal-description" class="modal-body"></div>
You would use
<div id="evesde-modal-description" class="modal-body-custom"></div>
And use that to add the missing styles from modal-body