mirror of
https://github.com/google/material-design-lite.git
synced 2024-08-17 00:00:24 +03:00
Remove mouseup event on slider to let change event occur.
This commit is contained in:
parent
3b749f1455
commit
c5efd97980
@ -82,16 +82,6 @@
|
||||
this.updateValueStyles_();
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mouseup on element.
|
||||
*
|
||||
* @param {Event} event The event that fired.
|
||||
* @private
|
||||
*/
|
||||
MaterialSlider.prototype.onMouseUp_ = function(event) {
|
||||
event.target.blur();
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mousedown on container element.
|
||||
* This handler is purpose is to not require the use to click
|
||||
@ -220,11 +210,9 @@
|
||||
|
||||
this.boundInputHandler = this.onInput_.bind(this);
|
||||
this.boundChangeHandler = this.onChange_.bind(this);
|
||||
this.boundMouseUpHandler = this.onMouseUp_.bind(this);
|
||||
this.boundContainerMouseDownHandler = this.onContainerMouseDown_.bind(this);
|
||||
this.element_.addEventListener('input', this.boundInputHandler);
|
||||
this.element_.addEventListener('change', this.boundChangeHandler);
|
||||
this.element_.addEventListener('mouseup', this.boundMouseUpHandler);
|
||||
this.element_.parentElement.addEventListener('mousedown', this.boundContainerMouseDownHandler);
|
||||
|
||||
this.updateValueStyles_();
|
||||
|
Loading…
Reference in New Issue
Block a user