- Merge request !739#3546716: data-options doesn't override existing config. → (Merged) created by hfernandes
The data-options
introduced by
📌
Allow custom data-options to added to elements JavaScript options
Active
isn't working properly.
It allows adding new attributes, but not overriding existing ones.
Enhance support for international phone numbers
.Advanced
tab and add the following to Element custom attributes (YAML)
:data-options:
hiddenInput: '{"nationalMode": "true"}'
By default, the nationalMode
is false
and adding this data-options
doesn't override the settings.
Instead of options = $.extend(JSON.parse($telephone.attr('data-options')), options);
change it to:
options = $.extend(true, options, JSON.parse($telephone.attr('data-options')));
It will also allow the two objects to be merged.
Active
6.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.