Completed
Last Updated: 08 Jun 2022 08:25 by ADMIN
ADMIN
Danail Vasilev
Created on: 01 Oct 2015 12:04
Category: FormDecorator
Type: Bug Report
0
Decorated ASP:DropDown is collapsed when the scrollbar is clicked under IE 11 on Win8.1

		
1 comment
ADMIN
Nikolay
Posted on: 06 Oct 2015 12:04
In this case when the user clicks on the scrollbar, mouseup event is raised immediately after mousedown, before mouse button is released. Here is the workaround:
<script type="text/javascript">
	var rfdPrototype = Telerik.Web.UI.RadFormDecorator.prototype;
	var mouseDownHandler = rfdPrototype._selectBodyMouseDownHandler;
	rfdPrototype._selectBodyMouseDownHandler = function (ev) {
		var upHandler = this._selectBodyClickDelegate;
		if (Telerik.Web.Browser.ie && upHandler) {
			$telerik.removeHandler(document, "mouseup", upHandler);
			setTimeout(function () {
				$telerik.addHandler(document, "mouseup", upHandler);
			}, 0);
		}
		mouseDownHandler.call(this, ev);
	}
</script>