New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1] Notify config defaults and Invalid handler for event "click": got undefined #3722
Comments
Hi, There is a limitation that you cannot specify functions under quasar.conf.js > framework > config. |
@rstoenescu I see. I don't actually need a function, I only tried adding it there to see if it prevented the console error. I see the console error with out the function in the config also. Should it be valid to use only the icon & color in the config? If so, am I reading the docs correctly that ( assuming the console error was not there ) by providing an action with an icon, it should close itself when the button is clicked? If not, using the setDefaults is cool, I just wanted to make sure this is definitely not a bug. |
Isn't the outcome normal? You haven't defined your handler too.
|
Setting a handler does prevent the error when setting the defaults from Notify.setDefaults, but clicking the button does not close the notification. Maybe its just the wording in the docs:
where is says |
@pdanpdan Do you have a bit of time to investigate and see what's going on pls? |
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
…efaults to documentation close quasarframework#3722
Improved setting defaults through |
Thank you! |
When I configure some defaults in quasar.conf for Notify, I see the following error in the console:
Notify config and Invalid handler for event "click": got undefined
and clicking the button does not dismiss the notification. I think I am reading the docs correctly about not needing to specify a handler to get the notification to close.
If a 'handler' is specified or not, clicking/tapping on the button will also close the notification
However, adding a handler to the defaults does not fix the error.
Software version
Quasar: beta 13
@quasar/app (v1+ only): beta 13
OS:
Node:
NPM:
Browsers:
iOS:
Android:
Any other software related to your bug:
I don't think I can create a codepen for this one, can I?
What did you get as the error?
In the console: Invalid handler for event "click": got undefined
What were you expecting?
No console error and the Notify close button to close the notification.
What steps did you take, to get the error?
Added this under config in quasar.conf:
this also does not correct the issue:
The text was updated successfully, but these errors were encountered: