@@ -16,15 +16,6 @@ export class RbCheckbox extends FormControl(RbBase()) {
16
16
formControl : this . shadowRoot . querySelector ( 'input' )
17
17
} ) ;
18
18
}
19
- updated ( prevProps , prevState ) { // :void (runs before viewReady())
20
- if ( super . updated ) super . updated ( prevProps , prevState ) ;
21
- if ( ! this . rb . view . isReady ) return ;
22
- if ( prevProps . value === this . value ) return ;
23
- // runs after view updated (required)
24
- this . rb . events . emit ( this , 'value-changed' , {
25
- detail : { value : this . value }
26
- } ) ;
27
- }
28
19
29
20
/* Properties
30
21
*************/
@@ -33,6 +24,9 @@ export class RbCheckbox extends FormControl(RbBase()) {
33
24
...super . props ,
34
25
kind : props . string ,
35
26
label : props . string ,
27
+ inline : props . boolean ,
28
+ horizontal : props . boolean ,
29
+ right : props . boolean ,
36
30
sublabel : props . string ,
37
31
subtext : props . string ,
38
32
value : Object . assign ( { } , props . any , {
@@ -63,7 +57,16 @@ export class RbCheckbox extends FormControl(RbBase()) {
63
57
}
64
58
async setValue ( value ) { // :void
65
59
this . value = ! value ;
66
- await this . validate ( ) ;
60
+ // await this.validate();
61
+ }
62
+
63
+ /* Observer
64
+ ***********/
65
+ updating ( prevProps ) { // :void
66
+ if ( prevProps . value === this . value ) return ;
67
+ this . rb . events . emit ( this , 'value-changed' , {
68
+ detail : { value : this . value }
69
+ } ) ;
67
70
}
68
71
69
72
/* Event Handlers
0 commit comments