From bccc37b757e87ef9c3def6fbb5786ed174600ed8 Mon Sep 17 00:00:00 2001
From: Federico Brigante <me@fregante.com>
Date: Thu, 9 Nov 2023 19:22:34 +0800
Subject: `table-input`/`collapsible-content-button` - Silence Firefox (#7042)

---
 source/features/collapsible-content-button.tsx | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'source/features/collapsible-content-button.tsx')

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,
 	],
-- 
cgit v1.2.3

