A
A
artekha2016-10-26 12:18:58
JavaScript
artekha, 2016-10-26 12:18:58

Doesn't work in Firefox?

Almost nothing works in firefox, although everything is ok in chrome. See if you can help.
codepen.io/artekha/pen/PGLRGL

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Serdji, 2016-10-26
@ssumatokhin

Most likely, except for chrome, it will not work anywhere at all, the definition of a class-object through class so far works fine only in chrome. You need to include babel

T
timfcsm, 2016-10-26
@timfcsm

in this.selects you have an HTML collection, it does not have a forEach method, rehash it like this

Array.prototype.forEach.call(this.selects, (item, i, selects) => {
      item.addEventListener('mousedown', this.showMenu.bind(this));
    });

also this.lists and options in renderItems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question