@@ -16,15 +16,6 @@ export class RbCheckbox extends FormControl(RbBase()) {
1616 formControl : this . shadowRoot . querySelector ( 'input' )
1717 } ) ;
1818 }
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- }
2819
2920 /* Properties
3021 *************/
@@ -33,6 +24,9 @@ export class RbCheckbox extends FormControl(RbBase()) {
3324 ...super . props ,
3425 kind : props . string ,
3526 label : props . string ,
27+ inline : props . boolean ,
28+ horizontal : props . boolean ,
29+ right : props . boolean ,
3630 sublabel : props . string ,
3731 subtext : props . string ,
3832 value : Object . assign ( { } , props . any , {
@@ -63,7 +57,16 @@ export class RbCheckbox extends FormControl(RbBase()) {
6357 }
6458 async setValue ( value ) { // :void
6559 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+ } ) ;
6770 }
6871
6972 /* Event Handlers
0 commit comments