From 1107f01e99de23a29d9a93b77469b840bee6a242 Mon Sep 17 00:00:00 2001 From: Gregg Rapoza Date: Tue, 29 Jan 2019 12:25:47 -0500 Subject: [PATCH] Fixes 'type' attribute bindings per https://github.com/vuejs/vue/issues/6917 --- package.json | 2 +- src/components/TreeViewNode.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1b4df60f..1662d19d 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Yet another Vue treeview component.", "author": "Gregg Rapoza ", "license": "MIT", - "version": "0.4.0", + "version": "0.4.1", "browser": "index.js", "repository": { "url": "https://github.com/grapoza/vue-tree", diff --git a/src/components/TreeViewNode.vue b/src/components/TreeViewNode.vue index b2c7a71d..b1ecc07a 100644 --- a/src/components/TreeViewNode.vue +++ b/src/components/TreeViewNode.vue @@ -36,7 +36,7 @@ :id="inputId" class="tree-view-node-self-input tree-view-node-self-checkbox" :class="[customClasses.treeViewNodeSelfInput, customClasses.treeViewNodeSelfCheckbox]" - :type="model.input.type" + type="checkbox" :disabled="model.state.input.disabled" v-model="model.state.input.value" @change="$_treeViewNode_onCheckboxChange" /> @@ -45,7 +45,7 @@ :id="inputId" class="tree-view-node-self-input tree-view-node-self-radio" :class="[customClasses.treeViewNodeSelfInput, customClasses.treeViewNodeSelfRadio]" - :type="model.input.type" + type="radio" :name="model.input.name" :value="model.input.value" :disabled="model.state.input.disabled"