From 0b9f05435c4270017ed50cd532030bc99ca9f348 Mon Sep 17 00:00:00 2001 From: Dhruv Manek Date: Mon, 23 Aug 2021 14:42:40 -0700 Subject: [PATCH] remove `attemptChangeHeight` since it has AMP specific overflow feature --- src/preact/base-element.js | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/preact/base-element.js b/src/preact/base-element.js index 07d2801f0520..ed79a81ee01e 100644 --- a/src/preact/base-element.js +++ b/src/preact/base-element.js @@ -369,22 +369,6 @@ export class PreactBaseElement extends BaseElement { } } - /** @override */ - attemptChangeHeight(newHeight) { - return super.attemptChangeHeight(newHeight).catch((e) => { - // It's okay to disable this lint rule since we check that the restricted - // method exists. - // eslint-disable-next-line local/restrict-this-access - if (this.getOverflowElement && !this.getOverflowElement()) { - console./* OK */ warn( - '[overflow] element not found. Provide one to enable resizing to full contents.', - this.element - ); - } - throw e; - }); - } - /** * @protected * @param {!JsonObject} props