-
Notifications
You must be signed in to change notification settings - Fork 185
fix: add router-ignore attribute to Anchor with StreamResource #7691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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)
7ade6b2
to
740a8f0
Compare
740a8f0
to
6faad98
Compare
There was a problem hiding this 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
There was a problem hiding this 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>
There was a problem hiding this 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, 1 of 1 LGTMs obtained (waiting on @manolo and @ptdatkhtn)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all discussions resolved, 2 of 1 LGTMs obtained (waiting on @ptdatkhtn)
There was a problem hiding this 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:complete! all discussions resolved, 2 of 1 LGTMs obtained
Fixes #7623
This change is