Angular pro checkbox & file input issues


Topic: Angular pro checkbox & file input issues

Avion pro premium priority asked 6 years ago

Expected behavior 1. Checkbox should respond to click 2. File upload should honour uploader options and show only image files for upload

Actual behavior 1. Checkbox doesn't respond to click 2. File upload shows all file types when selecting file for upload

Resources (screenshots, code snippets etc.) component files available at https://drive.google.com/file/d/1zeRdAAyaaCd1rkMNEL-OcsJUs0UDQrh2/view?usp=sharing


Damian Gemza staff answered 6 years ago

Dear @Avion

Your ticket lacks with description.

Please describe your problem more broadly - from your actual description, I'm unable to help you well with your problem.

What does it mean, that checkbox is not responding to click?

Please provide me sample codes for checkbox and file input, there's no possibility to debug your problem with code which you have posted me - there are missing interfaces, classes.

Best Regards,

Damian


Avion pro premium priority answered 6 years ago

Thanks for your response Standard behaviour of the checkbox is for it to be ticked or unticked on mouse click But this does not happen It can be ticked or unticked via code but not via user interaction

Happy to email src if you can provide email address


Avion pro premium priority answered 6 years ago

Damian Gemza staff answered 6 years ago

Please send your app to me via email. You can find me here: d.gemza@mdbootstrap.com

Best Regards,

Damian


Avion pro premium priority answered 6 years ago

Found the issue with mdb-checkbox If here is an id attribute , the mdb-checkbox does not repsond to mouse click events

Works

<mdb-checkbox formControlName="checked" >Checked with FormControl</mdb-checkbox>

Doesn't work

<mdb-checkbox formControlName="checked"  id="Hello">Checked with FormControl</mdb-checkbox>

Damian Gemza staff answered 6 years ago

Dear @Avion

Use the [id]=" 'hello' " syntax, and it will work.

<mdb-checkbox [id]=" 'hello' " >Checked with FormControl</mdb-checkbox>

Best Regards,

Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 7.5.1
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes