Skip to content

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

@jeremypetrequin

Description

@jeremypetrequin

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions