2
0
mirror of https://github.com/esiur/iui.git synced 2025-05-06 06:42:58 +00:00

Merge pull request #4 from msal4/placeholder

Support placeholders for `i-input`
This commit is contained in:
Esiur Project 2022-02-17 16:35:58 +03:00 committed by GitHub
commit d1be439837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ export default IUI.module(class Input extends IUIElement {
this._span.innerHTML = this.getAttribute("caption");
this._input = document.createElement("input");
this._input.placeholder = " ";
this._input.placeholder = this.getAttribute("placeholder") || "";
let self = this;