Index: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
index 8113627b4912b4cd035a5989f2c3b949b54080c4..896824713aae1ac05ad5ee80d6e7ad8712cbecff 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
@@ -200,7 +200,10 @@ UI.TextPrompt = class extends Common.Object { |
* @param {string} placeholder |
*/ |
setPlaceholder(placeholder) { |
- this._element.setAttribute('data-placeholder', placeholder); |
+ if (placeholder) |
+ this._element.setAttribute('data-placeholder', placeholder); |
+ else |
+ this._element.removeAttribute('data-placeholder'); |
} |
_removeFromElement() { |