Skip to content

Commit dc5d4c7

Browse files
committed
fix: create_element should return a selection even if an error happens
fixes #200
1 parent 514301f commit dc5d4c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/base/bind.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const create_element = (init_func, instance_args, selection) => {
1515
? init_func(instance_args, selection) : selection.append('span')
1616
} catch(error) {
1717
selection.call(show_error_message(`${error} [bind]`))
18+
return selection
1819
}
1920
}
2021

0 commit comments

Comments
 (0)