Skip to content

Commit 44c80f2

Browse files
committed
Adds "change" to action for changing input values; fixes puphpet#1623
1 parent bdc979c commit 44c80f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/assets/v5/js/custom.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var PUPHPET = {};
1212
* Loops through all data-* type attributes of element
1313
*/
1414
PUPHPET.updateOtherInput = function() {
15-
$(document).on('click', '.update-other-input', function(e){
15+
$(document).on('click, change', '.update-other-input', function(e){
1616
var $parent = $(this);
1717

1818
$.each($(this).data(), function(key, value) {
@@ -138,7 +138,7 @@ PUPHPET.updateOtherInputSelect = function() {
138138
* When element is checked, changes value of target
139139
*/
140140
PUPHPET.updateOtherInputOnCheck = function() {
141-
$(document).on('click', '.update-other-input-on-check', function(e){
141+
$(document).on('click, change', '.update-other-input-on-check', function(e){
142142
var $parent = $(this);
143143

144144
if (!$parent.is(':checked')) {

0 commit comments

Comments
 (0)