Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Add support to interactions with the input element (when input event happens) #195

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/rangeslider.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
this.$document.on(this.startEvent, '#' + this.identifier + ':not(.' + this.options.disabledClass + ')', this.handleDown);

// Listen to programmatic value changes
this.$element.on('change.' + this.identifier, function(e, data) {
this.$element.on('change.' + this.identifier + ' input.' + this.identifier, function(e, data) {
if (data && data.origin === _this.identifier) {
return;
}
Expand Down Expand Up @@ -319,6 +319,8 @@

// If we click on the handle don't set the new position
if ((' ' + e.target.className + ' ').replace(/[\n\t]/g, ' ').indexOf(this.options.handleClass) > -1) {
this.$element.focus();
e.preventDefault();
return;
}

Expand Down