Update stickybits directive in the base-form

This commit is contained in:
leigh-mil 2019-08-30 15:18:29 -04:00
parent 55b12ba633
commit 2742c4951a

View File

@ -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)
},
},
},