Merge pull request #1053 from dod-ccpo/fix-sidebar

Stickybits!
This commit is contained in:
leigh-mil
2019-08-30 18:15:57 -04:00
committed by GitHub
12 changed files with 88 additions and 48 deletions

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

View File

@@ -130,8 +130,12 @@ const app = new Vue({
directives: {
sticky: {
inserted: el => {
stickybits(el)
inserted: (el, binding) => {
var customAttributes
if (binding.expression) {
customAttributes = JSON.parse(binding.expression)
}
stickybits(el, customAttributes)
},
},
},