Commit ef5b6882 authored by peterhegman's avatar peterhegman

Refactor pulling dataset from Vue root element

parent 959dc60e
......@@ -10,12 +10,9 @@ export default () => {
CommaSeparatedListTokenSelector,
},
data() {
const { dataset } = document.querySelector(this.$options.el);
const { hiddenInputId, labelId } = document.querySelector(this.$options.el).dataset;
return {
hiddenInputId: dataset.hiddenInputId,
labelId: dataset.labelId,
};
return { hiddenInputId, labelId };
},
render(createElement) {
return createElement('comma-separated-list-token-selector', {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment