Commit ef5b6882 authored by peterhegman's avatar peterhegman

Refactor pulling dataset from Vue root element

parent 959dc60e
...@@ -10,12 +10,9 @@ export default () => { ...@@ -10,12 +10,9 @@ export default () => {
CommaSeparatedListTokenSelector, CommaSeparatedListTokenSelector,
}, },
data() { data() {
const { dataset } = document.querySelector(this.$options.el); const { hiddenInputId, labelId } = document.querySelector(this.$options.el).dataset;
return { return { hiddenInputId, labelId };
hiddenInputId: dataset.hiddenInputId,
labelId: dataset.labelId,
};
}, },
render(createElement) { render(createElement) {
return createElement('comma-separated-list-token-selector', { 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