vendor/assets/javascripts/foundation/foundation.slider.js in foundation-rails-5.4.1.0 vs vendor/assets/javascripts/foundation/foundation.slider.js in foundation-rails-5.4.2.0

- old
+ new

@@ -2,11 +2,11 @@ 'use strict'; Foundation.libs.slider = { name : 'slider', - version : '5.3.3', + version : '5.4.1', settings: { start: 0, end: 100, step: 1, @@ -125,9 +125,18 @@ } $handle.parent().attr(this.attr_name(), value).trigger('change').trigger('change.fndtn.slider'); $handle.parent().children('input[type=hidden]').val(value); + + if (!$handle[0].hasAttribute('aria-valuemin')) { + $handle.attr({ + 'aria-valuemin': settings.start, + 'aria-valuemax': settings.end, + }); + } + $handle.attr('aria-valuenow', value); + if (settings.input_id != '') { $(settings.display_selector).each(function(){ if (this.hasOwnProperty('value')) { $(this).val(value);