From 05859dba401dd0afd8e679ed47c2450d135898d9 Mon Sep 17 00:00:00 2001 From: Mohsen Sarkar Date: Wed, 15 Feb 2017 17:21:36 +0330 Subject: [PATCH] fix(searchbar): add IE support remove() as a method on HTMLElements is not supported on IE. --- src/components/searchbar/searchbar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/searchbar/searchbar.ts b/src/components/searchbar/searchbar.ts index 5305612428c..01c393d8f04 100644 --- a/src/components/searchbar/searchbar.ts +++ b/src/components/searchbar/searchbar.ts @@ -289,7 +289,7 @@ export class Searchbar extends Ion { // Get the width of the span then remove it var textWidth = tempSpan.offsetWidth; - tempSpan.remove(); + doc.body.removeChild(tempSpan); // Set the input padding left var inputLeft = 'calc(50% - ' + (textWidth / 2) + 'px)';