Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Dec 27, 2024

Description of the issue this PR addresses:

I. Commit 1 handled cases of pressing enter at the edge of an anchor, which is a
child of an unbreakable element. The commit inserted the br's after anchors;
however, it missed the situation where the anchor tags are block elements nested
inside an unbreakable element inside a li. In this specific case, inserting
two br tags after a anchor block resulted in the creation of two new lines.
This PR handles that case by only inserting one br tag after the anchor,
rather than both.

II. Previously when changing selection between links in website, when clicking on a
link the previous link used to get selected. This commit makes sure that when
changing selection in between links it selects the correct link.

III. This PR ensures that the link popover closes when the cursor moves outside
the link.

task-3631910


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #171469

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Dec 27, 2024
@robodoo
Copy link
Contributor

robodoo commented Dec 27, 2024

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 27, 2024

This PR targets 17.0 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label Dec 27, 2024
@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 27, 2024

@deso-odoo @dmo-odoo ci/runbot failed on this forward-port PR

@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 31, 2024

@deso-odoo @dmo-odoo this forward port of #171469 is awaiting action (not merged or closed).

Commit [1] handled cases of pressing enter at the edge of an anchor, which is a
child of an unbreakable element. The commit inserted the `br`'s after anchors;
however, it missed the situation where the anchor tags are block elements nested
inside an unbreakable element inside a `li`. In this specific case, inserting
two `br` tags after a anchor block resulted in the creation of two new lines.
This commit handles that case by only inserting one `br` tag after the anchor,
rather than both.

[1]: df6f8dd

task-3631910

X-original-commit: 39b517c
This commit ensures that the link popover closes when the cursor moves outside
the link.

task-3631910

X-original-commit: 9609f9d
@deso-odoo deso-odoo force-pushed the 17.0-15.0-shift-enter-at-edge-of-link-deso-BPAG-fw branch from b3c522e to 3c0256c Compare December 31, 2024 07:30
@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 31, 2024

@deso-odoo @dmo-odoo this PR was modified / updated and has become a normal PR. It must be merged directly.

@C3POdoo C3POdoo requested review from a team December 31, 2024 07:32
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 1, 2025

@deso-odoo @dmo-odoo this forward port of #171469 is awaiting action (not merged or closed).

2 similar comments
@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 2, 2025

@deso-odoo @dmo-odoo this forward port of #171469 is awaiting action (not merged or closed).

@fw-bot
Copy link
Contributor Author

fw-bot commented Jan 3, 2025

@deso-odoo @dmo-odoo this forward port of #171469 is awaiting action (not merged or closed).

@deso-odoo
Copy link
Contributor

@dmo-odoo Runbot is green now. Had to change the tour, remember #171469 (comment).

@dmo-odoo
Copy link
Contributor

dmo-odoo commented Jan 3, 2025

@robodoo rebase-ff r+

@robodoo
Copy link
Contributor

robodoo commented Jan 3, 2025

Merge method set to rebase and fast-forward.

robodoo pushed a commit that referenced this pull request Jan 3, 2025
Commit [1] handled cases of pressing enter at the edge of an anchor, which is a
child of an unbreakable element. The commit inserted the `br`'s after anchors;
however, it missed the situation where the anchor tags are block elements nested
inside an unbreakable element inside a `li`. In this specific case, inserting
two `br` tags after a anchor block resulted in the creation of two new lines.
This commit handles that case by only inserting one `br` tag after the anchor,
rather than both.

[1]: df6f8dd

task-3631910

X-original-commit: 39b517c
Part-of: #191889
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
robodoo pushed a commit that referenced this pull request Jan 3, 2025
This commit ensures that the link popover closes when the cursor moves outside
the link.

task-3631910

closes #191889

X-original-commit: 9609f9d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
@robodoo robodoo closed this Jan 3, 2025
@fw-bot fw-bot deleted the 17.0-15.0-shift-enter-at-edge-of-link-deso-BPAG-fw branch January 17, 2025 10:48
BurkhalterY pushed a commit to Burkhalter-IT/odoo that referenced this pull request Jan 28, 2025
Commit [1] handled cases of pressing enter at the edge of an anchor, which is a
child of an unbreakable element. The commit inserted the `br`'s after anchors;
however, it missed the situation where the anchor tags are block elements nested
inside an unbreakable element inside a `li`. In this specific case, inserting
two `br` tags after a anchor block resulted in the creation of two new lines.
This commit handles that case by only inserting one `br` tag after the anchor,
rather than both.

[1]: df6f8dd

task-3631910

X-original-commit: 39b517c
Part-of: odoo#191889
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
BurkhalterY pushed a commit to Burkhalter-IT/odoo that referenced this pull request Jan 28, 2025
This commit ensures that the link popover closes when the cursor moves outside
the link.

task-3631910

closes odoo#191889

X-original-commit: 9609f9d
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants