Skip to content

A platform for community discussion. Free, open, simple.

DEV: removes ios hack fixed in iOS 26 (#35620)

Joffrey JAFFEUXcb116b534d9d
diff --git a/frontend/discourse/app/components/emoji-picker/content.gjs b/frontend/discourse/app/components/emoji-picker/content.gjs
index 28a66aa1b5d..8bdb63d6230 100644
--- a/frontend/discourse/app/components/emoji-picker/content.gjs
+++ b/frontend/discourse/app/components/emoji-picker/content.gjs
@@ -331,23 +331,12 @@ export default class EmojiPicker extends Component {
this.addVisibleSections(this._getSectionsUpTo(section));
this.lastVisibleSection = section;
- // iOS hack to avoid blank div when requesting section during momentum
- if (this.scrollableNode && this.capabilities.isIOS) {
- this.scrollableNode.style.overflow = "hidden";
- }
-
next(() => {
schedule("afterRender", () => {
const targetEmoji = document.querySelector(
`.emoji-picker__section[data-section="${section}"]`
);
targetEmoji.scrollIntoView({ block: "nearest" });
-
- // iOS hack to avoid blank div when requesting section during momentum
- if (this.scrollableNode && this.capabilities.isIOS) {
- this.scrollableNode.style.overflow = "scroll";
- }
-
this.scrollObserverEnabled = true;
});
});