Yoopta-Editor icon indicating copy to clipboard operation
Yoopta-Editor copied to clipboard

[BUG] Regression in multi selection in v4.9

Open rob2244 opened this issue 10 months ago • 5 comments

Has this bug been raised before?

  • [x] I have checked "open" AND "closed" issues and this is not a duplicate

Description

It seems that when using Yoopta without using the yarn.lock file of specific versions provided in the sample project, multi select is broken. Steps to reproduce:

  1. create a new react project using Vite
  2. copy over all the sample files except for the yarn.lock file
  3. Do an npm install
  4. Create a few blocks
  5. Try to multiselect, it doesn't work

I'm not sure which dependency exactly this is an issue with. I will try to narrow it down further.

Screenshots

No response

Do you want to work on this issue?

No

I can make a pr for this issue if you point me in the right direction in terms of packages to look at

rob2244 avatar Feb 07 '25 03:02 rob2244

Hello !

Any news on this ?

robinalexandre avatar Mar 16 '25 14:03 robinalexandre

@robinalexandre I didn't spend any more time looking into this because requirements changes. Might want to just pin the versions in the sample yarn lock file until maintainers release a fix.

rob2244 avatar Mar 25 '25 16:03 rob2244

hm, interesting. it seems div[data-block-selected]::before disappears for some reason

Darginec05 avatar Jun 11 '25 18:06 Darginec05

@rob2244 @robinalexandre guys, use this as temporary solution.

.yoopta-selection-block::before {
  content: "" !important;
}

CSS approach will be completely rewritten in the next major version to avoid similar errors

Darginec05 avatar Jun 11 '25 20:06 Darginec05

@Darginec05 Can you make a quick release to patch this? I would love to help but I am not sure where to put this code, I have been following this issue for two months now. Greatly appreciate the work you have been doing!

Shonn-Li avatar Jun 11 '25 22:06 Shonn-Li