Skip to content

Commit

Permalink
fix(bindable): fix issue with select and options
Browse files Browse the repository at this point in the history
  • Loading branch information
solkimicreb committed Dec 20, 2016
1 parent 950e76a commit 7a85a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middlewares/bindable.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ function bindAttribute (newParams) {
function bindElement (elem) {
const params = elem[secret.params]
if (params.mode === 'two-way' && !elem[secret.signal]) {
elem[secret.signal] = elem.$observe(syncElementWithState, elem)
Promise.resolve().then(() => elem[secret.signal] = elem.$observe(syncElementWithState, elem))
} else if (params.mode === 'one-time') {
elem.$unobserve(elem[secret.signal])
elem.$queue(syncElementWithState, elem)
Promise.resolve().then(() => elem.$queue(syncElementWithState, elem))
elem[secret.signal] = undefined
} else if (params.mode === 'one-way') {
elem.$unobserve(elem[secret.signal])
Expand Down

0 comments on commit 7a85a96

Please sign in to comment.