cronapp-framework-js 2.8.52 → 2.8.55

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/js/directives.js CHANGED
@@ -3943,11 +3943,16 @@
3943
3943
  await combobox.value(value);
3944
3944
 
3945
3945
  if (select.changeCursor) {
3946
- if (value == null || value == undefined) {
3947
- dataSourceScreen.active = {};
3948
- dataSourceScreen.cursor = -1;
3949
- modelSetter(_scope, null);
3950
- }
3946
+ scope.safeApply(() => {
3947
+ if (value == null || value == undefined) {
3948
+ dataSourceScreen.active = {};
3949
+ dataSourceScreen.cursor = -1;
3950
+ modelSetter(_scope, null);
3951
+ }
3952
+ else {
3953
+ _goTo(_scope, combobox, combobox.dataItem());
3954
+ }
3955
+ });
3951
3956
  }
3952
3957
  }
3953
3958
 
@@ -4897,7 +4902,7 @@
4897
4902
  } catch (e) {
4898
4903
  console.log('CronDynamicMenu: Invalid configuration!')
4899
4904
  }
4900
- let baseId = options && options.subMenuOptions ? options.subMenuOptions[0].id : "first";
4905
+ let baseId = options && options.subMenuOptions && options.subMenuOptions.length ? options.subMenuOptions[0].id : "first";
4901
4906
  var TEMPLATE_MAIN = `<ul id="menu-tag-ul-base-${baseId}" class="nav navbar-nav ${(isVertical ? 'col-md-12 padding-0' : '')}" style="float:left"></ul>`;
4902
4907
  var main = $(TEMPLATE_MAIN);
4903
4908
  main.attr('id', attrs.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cronapp-framework-js",
3
- "version": "2.8.52",
3
+ "version": "2.8.55",
4
4
  "description": "Javascript library for CronApp's projects",
5
5
  "main": "cronapp.framework.js",
6
6
  "scripts": {