mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3346 from mateusz/tdf-synthetic
BUG Add a synthetic event to workaround IE8 issues.
This commit is contained in:
commit
c93e752abe
@ -173,7 +173,11 @@
|
||||
},
|
||||
setValue: function(val) {
|
||||
this.data('metadata', $.extend(this.data('metadata'), {id: val}));
|
||||
this.find(':input:hidden').val(val).trigger('change');
|
||||
this.find(':input:hidden').val(val)
|
||||
// Trigger synthetic event so subscribers can workaround the IE8 problem with 'change' events
|
||||
// not propagating on hidden inputs. 'change' is still triggered for backwards compatiblity.
|
||||
.trigger('valueupdated')
|
||||
.trigger('change');
|
||||
},
|
||||
getValue: function() {
|
||||
return this.find(':input:hidden').val();
|
||||
|
Loading…
x
Reference in New Issue
Block a user