@cscfi/csc-ui 1.3.6 → 1.3.8

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.
@@ -946,11 +946,14 @@ const CIcon = class {
946
946
  this.size = 24;
947
947
  this.color = 'currentColor';
948
948
  }
949
+ componentDidLoad() {
950
+ this._pathElement.setAttribute('d', this.host.dataset.path);
951
+ }
949
952
  render() {
950
953
  return (h(Host, { style: {
951
954
  '--_c-icon-size': `${this.size}px`,
952
955
  '--_c-icon-default-color': this.color,
953
- } }, h("svg", { viewBox: "0 0 24 24" }, h("path", { d: this.path }))));
956
+ }, "data-path": this.path }, h("svg", { viewBox: "0 0 24 24" }, h("path", { ref: (el) => (this._pathElement = el) }))));
954
957
  }
955
958
  get host() { return getElement(this); }
956
959
  };
@@ -1022,10 +1025,8 @@ const CInput = class {
1022
1025
  }, { threshold: 1 });
1023
1026
  this._onBlur = () => {
1024
1027
  setTimeout(() => {
1025
- if (!this.active) {
1026
- this.isFocused = false;
1027
- this._hasBlurred = true;
1028
- }
1028
+ this.isFocused = false;
1029
+ this._hasBlurred = true;
1029
1030
  this._onReset();
1030
1031
  }, 100);
1031
1032
  };