Skip to content

Commit

Permalink
fix(searchbar): add IE support
Browse files Browse the repository at this point in the history
remove() as a method on HTMLElements is not supported on IE.
  • Loading branch information
Mohsen7s authored and manucorporat committed Mar 8, 2017
1 parent 58beea3 commit 05859db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/searchbar/searchbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)';
Expand Down

0 comments on commit 05859db

Please sign in to comment.