Invalid prop: custom validator check failed for prop "rotation"
See original GitHub issueFirst of all, thanks for your great work!
I want to rotate fa-toggle-on
by 180° on click (see screenshot). This is my code for the icon:
<a @click="toggleMode()"><fa icon="toggle-on" :rotation="(mode === 'multiple') ? 0 : 180" fixed-width size="2x"></fa></a>
It works well, but I see this error in my chrome dev tools console. I like having a clear console. Do you know why this happens and how I can fix it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
[Vue warn]: Invalid prop: custom validator check failed for ...
When I put number (4 or any other number) it works fine without generating the warning in the console. Below is my code:...
Read more >invalid prop custom validator check failed for prop value vue
Currently, if a custom validator fails, we get a console error log saying Invalid prop: custom validator check failed for prop 'email'which is...
Read more >[vue warn]: invalid prop: type check failed for prop
To fix this warning you can either change type of prop or set default position to 'top right' . Thanks. Open side panel....
Read more >HtmlEditor - The "Invalid prop: custom validator check ...
HtmlEditor - The "Invalid prop: custom validator check failed for prop 'formatName' " error occurs for certain toolbar items.
Read more >bootstrap-vue
_intervalId = null\n }\n },\n // Start auto rotate slides\n start(evt) {\n if (!evt) ... off(EVENT_STATE_SYNC, el[BV_TOGGLE])\n }\n // Reset custom props\n ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, shoot. I’m sorry about that. Right now it is a
Number
. The problem is that0
is not allowed. Check out the validator.You’ll need to specify
null
instead of0
.For other users - note that the rotate prop only accepts 90, 180 and 270 (whether as strings or numbers). If you to rotate differently, use the :transform prop.