Topic: Material selects , event handling unavailable ?
                  
                  xavier fiodembo
                  pro
                  asked 8 years ago
                
                      
                      dtremblay.grt
                      premium
                        answered 6 years ago
                    
I've managed to handle the onChange event with the "getValue" props. Here is an example :
<MDBSelect
                id={"YOUR_ID"}
                color={"primary"}
                label={"t_SELECT LABEL"}
                options={this.state.options}
                getValue={e => YOURCALLBACKFUNCTION(e)}
            />
Maybe an author of the library could confirm about this?
Konrad Stępień staff commented 6 years ago
Hi @dtremblay.grt,
Yes, you can also use getTextContent
For example:
<MDBSelect 
    options={this.state.options}
    getTextContent={this.handleSelectChange} 
>
More information you can find here in API tab
Best regards, Konrad.
                      
                      Marta Wierzbicka
                      free
                        answered 8 years ago
                    
$('#parentSelect').on('change', function() {
           console.log('parent Select change'); 
        });
Best,
Marta
                    
                      FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
 - Premium support: No
 - Technology: General Bootstrap questions
 - MDB Version: -
 - Device: -
 - Browser: -
 - OS: -
 - Provided sample code: No
 - Provided link: No