Skip to content

Commit 264daab

Browse files
committed
Fix type error
And lint error
1 parent 6bb5c9a commit 264daab

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bindModel.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ var inputTypeBindings = {
4646
var currentValue = binding.get()
4747

4848
var options = []
49+
var tagName
4950
children.forEach(function (child) {
50-
const tagName = child.tagName && child.tagName.toLowerCase()
51+
tagName = child.tagName && child.tagName.toLowerCase()
5152

5253
switch (tagName) {
5354
case 'optgroup':

test/browser/hyperdomSpec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,10 +1297,10 @@ describe('hyperdom', function () {
12971297
return h('div',
12981298
h('select',
12991299
{binding: [this, 'colour']},
1300-
h('optgroup', {label: 'common'}, [
1300+
h('optgroup', {label: 'common'},
13011301
h('option.red', {value: 'red'}, 'red'),
1302-
h('option.blue', {value: blue}, 'blue')
1303-
]),
1302+
h('option.blue', {value: blue}, 'blue'),
1303+
),
13041304
),
13051305
h('span', JSON.stringify(this.colour)),
13061306
)

0 commit comments

Comments
 (0)