Skip to content

Commit

Permalink
[Fix] Toolbox prevents text selection (#2051)
Browse files Browse the repository at this point in the history
* Add padding only to opened popover

* Update version and changelog

* Update docs/CHANGELOG.md

Co-authored-by: Ilya Moroz <[email protected]>

* Use pointer event approach

Co-authored-by: Ilya Moroz <[email protected]>
  • Loading branch information
TatianaFomina and ilyamore88 authored May 6, 2022
1 parent f2b19cc commit 8fec2e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 2.24.3

- `Fix` — Issue with toolbox preventing text selection fixed

### 2.24.2

- `Fix` — Scrolling issue when opening toolbox on mobile fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@editorjs/editorjs",
"version": "2.24.2",
"version": "2.24.3",
"description": "Editor.js — Native JS, based on API and Open Source",
"main": "dist/editor.js",
"types": "./types/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/styles/popover.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
box-sizing: border-box;
flex-shrink: 0;
max-height: 0;
pointer-events: none;

@apply --overlay-pane;

Expand All @@ -19,6 +20,7 @@
&--opened {
opacity: 1;
max-height: 270px;
pointer-events: auto;
animation: panelShowing 100ms ease;

@media (--mobile) {
Expand Down

0 comments on commit 8fec2e7

Please sign in to comment.