-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Writer field: getting console error when no buttons available for inline mode #6863
Comments
@distantnative No. That PR fixes the fixed toolbar at the top. I think the problem is related to the toolbar that appears in inline mode. |
@distantnative We can fix this issue in #6846 with just one line. Do you want to me push fix commit to #6846 ? |
@afbora what line is it? |
open() {
+ if (this.buttons.length === 0) {
+ return;
+ }
this.isOpen = true;
if (this.inline) {
this.$nextTick(this.setPosition);
} kirby/panel/src/components/Forms/Writer/Toolbar.vue Lines 279 to 285 in 4b810c1
|
Does it also works with check if the |
@distantnative Error is gone when I test with following but inline toolbar is completely missing as default writer field: open() {
if (!this.$refs.toolbar) {
return;
}
// other codes..
} |
You checked open() {
if (this.buttons.length === 0) {
return;
}
// other codes.. |
Description
Getting console error when no marks or nodes available for inline mode. Try to select a text in writer field and check the console.
Your setup
Kirby Version
4.5.0
The text was updated successfully, but these errors were encountered: