Closed danielroe closed 4 years ago
@danielroe Thank you for that.
I will do some tests and answer soon.
I'm facing the same problem.
Which version are you using?
The demo is working as expected.
If it is with the most current version and the error is happening, could you reproduce it online?
I can repro it on the demo link.
Console was cleared vue-axe.js:25630
@darrinmn9 Clearing the console when changing routes is expected behavior.
https://github.com/vue-a11y/vue-axe/blob/master/src/index.js#L43
In this case, if there is a demand for such functionality, we can add another option of clearConsoleOnRouteChange
Ah ok, im not sure if that is the same issue @danielroe is experiencing as well.
In terms of adding another option, I think that naming it clearConsoleOnRouteChange
is too specific. Some people just don't want any dependency clearing the console, especially during local development. so ideally there would be an option for "never clear the console"
I would definitely want to disable clearing the console full stop as it clears lots of useful information I use in developing an app.
I initially filed this issue as on first load of a Nuxt app, the console is cleared. I will provide a repro.
@ktquez @danielroe I created a PR to fix this, by adding an option allowConsoleClears
. It defaults to true
in order to not be a breaking change. Would love feedback.
allowConsoleClears
added in v2.4.0
(Duplicate of https://github.com/vue-a11y/vue-axe/issues/26 - possible regression?)
When running
vue-axe
with the following options, the console is cleared on load and on subsequent updates.