@wavemaker/app-ng-runtime 11.5.2-next.141050 → 11.5.2-next.141052

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.
@@ -2175,8 +2175,15 @@ class SelectComponent extends DatasetAwareFormComponent {
2175
2175
  }
2176
2176
  super.onPropertyChange(key, nv, ov);
2177
2177
  }
2178
+ isSafariBrowser() {
2179
+ var reg = {
2180
+ MAC: /Mac/i,
2181
+ MACINTEL: /MacIntel/i
2182
+ };
2183
+ return reg.MAC.test(window.navigator.platform) || reg.MACINTEL.test(window.navigator.platform);
2184
+ }
2178
2185
  isIosPlatform() {
2179
- return isIos();
2186
+ return isIos() || this.isSafariBrowser();
2180
2187
  }
2181
2188
  /**
2182
2189
  * When caption floating is enabled and placeholder is given, do not show placeholder until user focuses on the field
@@ -2187,8 +2194,8 @@ class SelectComponent extends DatasetAwareFormComponent {
2187
2194
  checkForFloatingLabel($event) {
2188
2195
  const captionEl = $(this.selectEl.nativeElement).closest('.app-composite-widget.caption-floating');
2189
2196
  if (captionEl.length > 0) {
2190
- if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || this.datavalue || this.isIosPlatform())))) {
2191
- if (!$event && (this.placeholder || this.datavalue || this.isIosPlatform())) {
2197
+ if ((!$event || $event.type === 'focus') && (($(this.selectEl).find('select option:selected').text() === '' && (this.placeholder || (this.datavalue || this.binddatavalue) || this.isIosPlatform())))) {
2198
+ if (!$event && (this.placeholder || this.datavalue || this.binddatavalue || this.isIosPlatform())) {
2192
2199
  this.app.notify('captionPositionAnimate', { isSelect: true, nativeEl: captionEl });
2193
2200
  }
2194
2201
  if (this.placeholder) {