Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(810)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 1917543002: DevTools: Update styles for sensors drawer panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed logic from patch 3 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index a98a6bdbeb2108c8a2e6c1ba092564b68c7ba93d..3ac40cb92d2a8c6038a3727857cf9171a54ef7cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -1524,7 +1524,8 @@ WebInspector.bindInput = function(input, apply, validate, numeric)
var valid = validate(value);
input.classList.toggle("error-input", !valid);
input.value = value;
- input.setSelectionRange(value.length, value.length);
+ if (input.type !== "number")
+ input.setSelectionRange(value.length, value.length);
}
return setValue;

Powered by Google App Engine
This is Rietveld 408576698