Skip to content

Commit 05859db

Browse files
Mohsen7smanucorporat
authored andcommitted
fix(searchbar): add IE support
remove() as a method on HTMLElements is not supported on IE.
1 parent 58beea3 commit 05859db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/searchbar/searchbar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class Searchbar extends Ion {
289289

290290
// Get the width of the span then remove it
291291
var textWidth = tempSpan.offsetWidth;
292-
tempSpan.remove();
292+
doc.body.removeChild(tempSpan);
293293

294294
// Set the input padding left
295295
var inputLeft = 'calc(50% - ' + (textWidth / 2) + 'px)';

0 commit comments

Comments
 (0)