Skip to content

Commit

Permalink
fix(autocomplete): fix IE11 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Dec 1, 2017
1 parent f213628 commit e94f969
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/src/autocomplete.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Small hack to remove verticalAlign on the input
import css from 'autocomplete.js/src/autocomplete/css.js';
delete css.input.verticalAlign;
delete css.inputWithNoHint.verticalAlign;
// Makes IE11 fail though
import _ from 'autocomplete.js/src/common/utils.js';
if (!_.isMsie()) {
const css = require('autocomplete.js/src/autocomplete/css.js');
delete css.input.verticalAlign;
delete css.inputWithNoHint.verticalAlign;
}

import autocomplete from 'autocomplete.js';
import zepto from 'autocomplete.js/zepto.js';
Expand Down

0 comments on commit e94f969

Please sign in to comment.