Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit 78e5a90

Browse files
committed
Pass id to range
Fixes framework7io/framework7#2371
1 parent d1dea89 commit 78e5a90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/input.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@
120120
} else if ((self.$slots.default && self.$slots.default.length > 0) || !self.type) {
121121
inputEl = self.$slots.default;
122122
} else if (self.type === 'toggle') {
123-
inputEl = c('f7-toggle', { props: attrs, on });
123+
inputEl = c('f7-toggle', { props: attrs, on, attrs: { id: attrs.id } });
124124
} else if (self.type === 'range') {
125125
on['range:change'] = self.onChange;
126-
inputEl = c('f7-range', { props: attrs, on });
126+
inputEl = c('f7-range', { props: attrs, on, attrs: { id: attrs.id } });
127127
} else {
128128
inputEl = c('input', {
129129
attrs,

0 commit comments

Comments
 (0)