Skip to content

Commit

Permalink
fix(checkbox): fix missing adapter methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stasson committed Oct 29, 2017
1 parent 1bc8e6d commit 46fa83c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/checkbox/mdc-checkbox.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div :class=formFieldClasses>
<div ref="root" class="mdc-checkbox"
<div ref="root" class="mdc-checkbox"
:class="classes" :style="styles">
<input ref="control" :id="_uid" type="checkbox"
class="mdc-checkbox__native-control" :value="value"
class="mdc-checkbox__native-control" :value="value"
@change="onChange"/>
<div class="mdc-checkbox__background">
<svg class="mdc-checkbox__checkmark"
Expand Down Expand Up @@ -77,6 +77,8 @@ export default {
deregisterAnimationEndHandler: (handler) =>
this.$refs.root.removeEventListener(
getCorrectEventName(window, 'animationend'), handler),
registerChangeHandler: (handler) => this.$refs.control.addEventListener('change', handler),
deregisterChangeHandler: (handler) => this.$refs.control.removeEventListener('change', handler),
getNativeControl: () => this.$refs.control,
forceLayout: () => this.$forceUpdate(),
isAttachedToDOM: () => Boolean(this.$el.parentNode)
Expand Down

0 comments on commit 46fa83c

Please sign in to comment.