зеркало из https://github.com/mozilla/gecko-dev.git
Bug 927911: Don't try to attach SelectionHandler carets to disabled input elements, r=margaret
This commit is contained in:
Родитель
9deb76cc82
Коммит
5fc9f0a5b9
|
@ -4305,9 +4305,10 @@ var BrowserEventHandler = {
|
|||
this._sendMouseEvent("mousedown", element, x, y);
|
||||
this._sendMouseEvent("mouseup", element, x, y);
|
||||
|
||||
// See if its a input element
|
||||
if ((element instanceof HTMLInputElement && element.mozIsTextField(false)) ||
|
||||
(element instanceof HTMLTextAreaElement))
|
||||
// See if its an input element, and it isn't disabled
|
||||
if (!element.disabled &&
|
||||
((element instanceof HTMLInputElement && element.mozIsTextField(false)) ||
|
||||
(element instanceof HTMLTextAreaElement)))
|
||||
SelectionHandler.attachCaret(element);
|
||||
|
||||
// scrollToFocusedInput does its own checks to find out if an element should be zoomed into
|
||||
|
|
Загрузка…
Ссылка в новой задаче