javascript - Failed to execute 'querySelectorAll' on 'Element' in ExtJS 5 -


i trying using ext.dom.query.select method find divs having class name square , highlightedreactangle.same method working extjs 4 , after grading extjs 5 start throwing error.

uncaught syntaxerror: failed execute 'queryselectorall' on 'element': 'div:any(div.square|div.highlightedreactangle|div.highlightedreactangleie|div.pin|div.redcirclecount|div.stamppreviewcls)' not valid selector.

the statement i'm using find related div is,

this.el.select("div:any(div.square|div.highlightedreactangle|div.highlightedreactangleie|div.pin|div.redcirclecount|div.stamppreviewcls)", true); 

what exactely i'm missing ?

what exactely i'm missing ?

from version 5, when select called on element (versus explicitly using ext.dom.query.select), ext js uses native queryselectorall method requires valid css selectors. error message suggests, selector not valid one.

in version 4, ext js used ext.dom.query.select processing select calls on elements. method more "liberal" queryselectorall. work in version 5 well, can use:

ext.dom.query.select(your_selector, this.el.dom) 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -