@websy/websy-designs 1.4.19 → 1.4.20
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.
|
@@ -4626,7 +4626,7 @@ class WebsySearch {
|
|
|
4626
4626
|
el.innerHTML = `
|
|
4627
4627
|
<div class='websy-search-input-container'>
|
|
4628
4628
|
${this.options.searchIcon}
|
|
4629
|
-
<input id='${this.elementId}_search' class='websy-search-input' placeholder='${this.options.placeholder || 'Search'}'>
|
|
4629
|
+
<input id='${this.elementId}_search' class='websy-search-input' placeholder='${this.options.placeholder || 'Search'}' value='${this.options.initialValue || ''}'>
|
|
4630
4630
|
<div class='clear ${this.options.clearAlwaysOn === true ? '' : 'websy-hidden'}' id='${this.elementId}_clear'>
|
|
4631
4631
|
${this.options.clearIcon}
|
|
4632
4632
|
</div>
|
package/dist/websy-designs.js
CHANGED
|
@@ -5119,7 +5119,7 @@ var WebsySearch = /*#__PURE__*/function () {
|
|
|
5119
5119
|
el.addEventListener('click', this.handleClick.bind(this));
|
|
5120
5120
|
el.addEventListener('keyup', this.handleKeyUp.bind(this));
|
|
5121
5121
|
el.addEventListener('keyup', this.handleKeyDown.bind(this));
|
|
5122
|
-
el.innerHTML = "\n <div class='websy-search-input-container'>\n ".concat(this.options.searchIcon, "\n <input id='").concat(this.elementId, "_search' class='websy-search-input' placeholder='").concat(this.options.placeholder || 'Search', "'>\n <div class='clear ").concat(this.options.clearAlwaysOn === true ? '' : 'websy-hidden', "' id='").concat(this.elementId, "_clear'>\n ").concat(this.options.clearIcon, "\n </div>\n </div>\n ");
|
|
5122
|
+
el.innerHTML = "\n <div class='websy-search-input-container'>\n ".concat(this.options.searchIcon, "\n <input id='").concat(this.elementId, "_search' class='websy-search-input' placeholder='").concat(this.options.placeholder || 'Search', "' value='").concat(this.options.initialValue || '', "'>\n <div class='clear ").concat(this.options.clearAlwaysOn === true ? '' : 'websy-hidden', "' id='").concat(this.elementId, "_clear'>\n ").concat(this.options.clearIcon, "\n </div>\n </div>\n ");
|
|
5123
5123
|
} else {
|
|
5124
5124
|
console.log('No element found with Id', elementId);
|
|
5125
5125
|
}
|