Skip to content
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

Unable to make trailling space in heading block inside of a Layout Block #12

Open
jeremypetrequin opened this issue Oct 19, 2022 · 0 comments

Comments

@jeremypetrequin
Copy link

Hello,

Thank a lot for your plugin it save me a lot of time.
I've just noticed a strange bug:

  • I've made a Layout Block, blueprint bellow
name: Colonnes
icon: grid-right
preview: fields
label: false
fields:
  columns:
    label: Colonnes
    type: layout
    layouts:
      - "1/2, 1/2"
    fieldsets:
      - heading
      - markdown
      - image
      - button
  • When I create a bloc using this, the drawer open on right, I add a layout, then a bloc "heading" in first col, and I type my title, but I can't make space (See video bellow, I tried to type "Lorem Ipsum Dolor Sit Amet")
    If I come back in my text, i'm able to add space, but it's pretty annoying.
Enregistrement.de.l.ecran.2022-10-18.a.15.24.58.mp4.mp4

Looking at your code source, I've could "resolve" the bug by adding a condition to not $emit('update') event if we are in drawer

on: {
      "input": function ($event) {
          if(!document.querySelector('.k-drawer')) {
              _vm.$emit("update", $event)
          }
      }
  }

Yes, it's a pretty ugly hack, I imagine it could be done better and I made it directly in compiled javascript code... 😬, I didn't have too much time to look at it.. But maybe these clues can help you resolve it.

Have a good day, sorry for my english ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant