Topic: appearing "click" on the console

master@mastersistemas.net pro asked 4 years ago


Good afternoon, I'm having a problem, when I click on a button it prints me "Click", and I'm not calling any method that does this. https://ibb.co/ciSq8U  

Anna Morawska staff commented 4 years ago

Hello, thank you for reporting this. I' ve just looked through our code, in search for this console.log, but I haven't fount find it. Could you tell me which component exactly you use? Do you import our component in your application or use it in our demo app? Thank you in advance. Best, Ania

Anna Morawska staff answered 4 years ago


Hi,
sorry, it looks like you use branch master of mdbreact package. This warning appears because of bug with dependencies which is already fixed on branch dev. I suggest waiting for our update.
If you can't wait, you can:
1) open this file : /node_modules/mdbreact/dist/mdbreact.js
2) find in this file (CTR + F) exactly this line (with comma): ,onClick:console.log("click") and delete it , save the file, and then re-run your project with npm start / yarn start
This should help.
Best,
Ania


master@mastersistemas.net pro commented 4 years ago

Hello, any forecast for this update? I'm going through more problems and I believe it's because of this.

Anna Morawska staff commented 4 years ago

Hello, next update is scheduled on 10th of September

master@mastersistemas.net pro commented 4 years ago

Hello, to correct this problem with the branch, do I update the MDB package again or do I need to do some other specific process?


No problem, If I remove
fade={false}

the modal does not open and I get this error back on the console.
index.js:2178 Warning: Received `true` for a non-boolean attribute `in`.

If you want to write it to the DOM, pass a string instead: in="true" or in={value.toString()}.
in div (created by t)
in t
in div (created by t)
in t
 


No problem, If I remove
fade={false}

the modal does not open and I get this error back on the console.
index.js:2178 Warning: Received `true` for a non-boolean attribute `in`.

If you want to write it to the DOM, pass a string instead: in="true" or in={value.toString()}.
in div (created by t)
in t
in div (created by t)
in t
 


Good Morning, I do not know if this makes sense, but the "Click" only appears when the button opens a modal.
<ButtononClick={this.openModalNew}size="sm"roundedcolor="white">Novo</Button>

Anna Morawska staff commented 4 years ago

Thank you, I've just found it, It will be fixed in next release. Tomorrow changes will be available on branch dev. If you want to, you can also remove fade={false} from the modal component, it also should temporarily fix this. Sorry for the inconvenience. Best, Anna


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: No
  • Technology: MDB React
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags