diff --git a/js/components/forms/base_form.js b/js/components/forms/base_form.js index 938eb3cc..77bc0099 100644 --- a/js/components/forms/base_form.js +++ b/js/components/forms/base_form.js @@ -34,8 +34,12 @@ export default { mixins: [FormMixin], directives: { sticky: { - inserted: el => { - stickybits(el) + inserted: (el, binding) => { + var customAttributes + if (binding.expression) { + customAttributes = JSON.parse(binding.expression) + } + stickybits(el, customAttributes) }, }, },