Update stickybits directive in the base-form
This commit is contained in:
parent
55b12ba633
commit
2742c4951a
@ -34,8 +34,12 @@ export default {
|
|||||||
mixins: [FormMixin],
|
mixins: [FormMixin],
|
||||||
directives: {
|
directives: {
|
||||||
sticky: {
|
sticky: {
|
||||||
inserted: el => {
|
inserted: (el, binding) => {
|
||||||
stickybits(el)
|
var customAttributes
|
||||||
|
if (binding.expression) {
|
||||||
|
customAttributes = JSON.parse(binding.expression)
|
||||||
|
}
|
||||||
|
stickybits(el, customAttributes)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user