Skip to content

Conversation

platosha
Copy link
Contributor

@platosha platosha commented Feb 26, 2020

Fixes #7623


This change is Reviewable

@platosha platosha added the hilla Issues related to Hilla label Feb 26, 2020
ptdatkhtn
ptdatkhtn previously approved these changes Feb 27, 2020
Copy link
Contributor

@ptdatkhtn ptdatkhtn left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1.
Reviewable status: 2 unresolved discussions, 0 of 1 LGTMs obtained (waiting on @platosha)

@platosha platosha force-pushed the ap/ccdm/fix-router-ignore-anchor-streamresource branch from 7ade6b2 to 740a8f0 Compare February 27, 2020 09:00
@vaadin-bot vaadin-bot added +1.0.0 and removed +0.1.0 labels Feb 27, 2020
@platosha platosha force-pushed the ap/ccdm/fix-router-ignore-anchor-streamresource branch from 740a8f0 to 6faad98 Compare February 27, 2020 10:33
@manolo manolo requested a review from ptdatkhtn February 28, 2020 07:29
Copy link
Member

@manolo manolo left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained (waiting on @platosha and @ptdatkhtn)


flow-html-components/src/main/java/com/vaadin/flow/component/html/Anchor.java, line 117 at r2 (raw file):

    public void setHref(String href) {
        set(hrefDescriptor, href);
        getElement().removeAttribute(ROUTER_IGNORE_ATTRIBUTE);

Why not just set the attribute in the constructor? I dont see any advantage on setting/removing the atribute when the href is set or not

Copy link
Contributor Author

@platosha platosha left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 unresolved discussion, 0 of 1 LGTMs obtained (waiting on @manolo and @ptdatkhtn)


flow-html-components/src/main/java/com/vaadin/flow/component/html/Anchor.java, line 117 at r2 (raw file):

Previously, manolo (Manuel Carrasco Moñino) wrote…

Why not just set the attribute in the constructor? I dont see any advantage on setting/removing the atribute when the href is set or not

As discussed in F2F, it’s unexpected that Anchor produces something different than <a href>

Copy link
Contributor

@ptdatkhtn ptdatkhtn left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 1 unresolved discussion, 1 of 1 LGTMs obtained (waiting on @manolo and @ptdatkhtn)

@manolo manolo requested a review from ptdatkhtn March 2, 2020 07:18
Copy link
Member

@manolo manolo left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all discussions resolved, 2 of 1 LGTMs obtained (waiting on @ptdatkhtn)

Copy link
Member

@manolo manolo left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r2.
Reviewable status: :shipit: complete! all discussions resolved, 2 of 1 LGTMs obtained

@manolo manolo merged commit 561b46d into master Mar 2, 2020
@manolo manolo deleted the ap/ccdm/fix-router-ignore-anchor-streamresource branch March 2, 2020 07:19
@platosha platosha mentioned this pull request Mar 2, 2020
manolo pushed a commit that referenced this pull request Mar 2, 2020
* fix: add router-ignore attribute to Anchor with StreamResource (#7691)
Fixes #7623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hilla Issues related to Hilla +1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Links with stream resource are broken in CCDM
4 participants