summaryrefslogtreecommitdiff
path: root/source/features/collapsible-content-button.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/collapsible-content-button.tsx')
-rw-r--r--source/features/collapsible-content-button.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/features/collapsible-content-button.tsx b/source/features/collapsible-content-button.tsx
index dd2a8940..80730332 100644
--- a/source/features/collapsible-content-button.tsx
+++ b/source/features/collapsible-content-button.tsx
@@ -8,6 +8,7 @@ import {elementExists} from 'select-dom';
import features from '../feature-manager.js';
import smartBlockWrap from '../helpers/smart-block-wrap.js';
import observe from '../helpers/selector-observer.js';
+import {isHasSelectorSupported} from '../helpers/select-has.js';
function addContentToDetails({delegateTarget}: DelegateEvent<MouseEvent, HTMLButtonElement>): void {
/* There's only one rich-text editor even when multiple fields are visible; the class targets it #5303 */
@@ -73,6 +74,9 @@ function init(signal: AbortSignal): void {
}
void features.add(import.meta.url, {
+ asLongAs: [
+ isHasSelectorSupported,
+ ],
include: [
pageDetect.hasRichTextEditor,
],