@tarojs/plugin-platform-harmony-ets 4.0.0-beta.56 → 4.0.0-beta.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime.js CHANGED
@@ -4340,9 +4340,12 @@ function filter(fields, dom) {
4340
4340
  }
4341
4341
  function querySelector(selector, selectAll) {
4342
4342
  if (typeof selector === 'string') {
4343
- return parseHandler(selector, selectAll);
4343
+ return selector.split(',').reduce((prev, current) => {
4344
+ const item = current.trim();
4345
+ return prev.concat(parseHandler(item, selectAll));
4346
+ }, []);
4344
4347
  }
4345
- return null;
4348
+ return [];
4346
4349
  }
4347
4350
  function queryBat(queue, cb) {
4348
4351
  const result = [];