qms-angular 1.0.23 → 1.0.24

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.
@@ -1746,9 +1746,10 @@
1746
1746
  */
1747
1747
  QMSToolTipRendererDirective.prototype.show = function () {
1748
1748
  //attach the component if it has not already attached to the overlay
1749
- if (this.text && this._overlayRef && !this._overlayRef.hasAttached()) {
1749
+ if ((this.text || this.contentTemplate) && this._overlayRef && !this._overlayRef.hasAttached()) {
1750
1750
  var tooltipRef = this._overlayRef.attach(new portal.ComponentPortal(QMSToolTipComponent));
1751
- tooltipRef.instance.text = this.text;
1751
+ if (this.text)
1752
+ tooltipRef.instance.text = this.text;
1752
1753
  if (this.mode) {
1753
1754
  tooltipRef.instance.mode = this.mode;
1754
1755
  }
@@ -4479,7 +4480,7 @@
4479
4480
  RelatedPopupComponent.prototype.onSearchRelated = function (_val) {
4480
4481
  this.filteredOptions = [];
4481
4482
  if (typeof (_val) === 'object') {
4482
- return;
4483
+ this.myControl.setValue('');
4483
4484
  }
4484
4485
  else if (typeof (_val) === 'string') {
4485
4486
  if (!!_val) {