Skip to content

Conversation

@backportbot-nextcloud
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Sep 8, 2022

backport of #2872

@mejo-
Copy link
Member

mejo- commented Sep 8, 2022

/compile

Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like stable24 does not have debounce yet.

max-nextcloud and others added 3 commits September 12, 2022 11:41
Ensure the menububble always shows the correct entries.

The menububble shows different buttons if the selected text is a link.
However its content often became out of sync with the editor:
* when new text was selected the bubble was still cached
* when the selection stayed active but was expanded / shrinked
  the menu bubble also stayed the same
* when someone else editing the same page changed the current selection into a link

Recompute the menububbles `active` data on every editor change.

The code used for this is mostly taken from the menu bars mechanism
for the same purpose.
See updateState in src/components/Menu/BaseActionEntry.js.

Signed-off-by: Max <[email protected]>
Signed-off-by: Jonas <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Signed-off-by: Jonas <[email protected]>
@mejo- mejo- force-pushed the backport/2872/stable24 branch from e913c08 to 295533f Compare September 12, 2022 09:43
@mejo- mejo- requested a review from max-nextcloud September 12, 2022 09:44
@mejo-
Copy link
Member

mejo- commented Sep 12, 2022

looks like stable24 does not have debounce yet.

Indeed. Installed now.

@mejo- mejo- dismissed max-nextcloud’s stale review September 12, 2022 11:14

debounce is installed now.

@mejo- mejo- merged commit 436f8ba into stable24 Sep 12, 2022
@delete-merged-branch delete-merged-branch bot deleted the backport/2872/stable24 branch September 12, 2022 11:15
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

Successfully merging this pull request may close these issues.

4 participants