From 2742c4951a8e468e6591858db2539cb36c76cf6c Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Fri, 30 Aug 2019 15:18:29 -0400 Subject: [PATCH] Update stickybits directive in the base-form --- js/components/forms/base_form.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) }, }, },