From b759ece1e58b5af65251a362f330893067ccc62d Mon Sep 17 00:00:00 2001 From: Mohammed Salman Date: Wed, 16 Feb 2022 19:07:26 +0300 Subject: [PATCH] Add placeholder --- src/UI/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/Input.js b/src/UI/Input.js index d14ddf3..07d61b5 100644 --- a/src/UI/Input.js +++ b/src/UI/Input.js @@ -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;