Skip to content
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

Order of DOM nodes in a button is not respected #3079

Closed
chabb opened this issue Mar 12, 2019 · 1 comment · Fixed by #3578
Closed

Order of DOM nodes in a button is not respected #3079

chabb opened this issue Mar 12, 2019 · 1 comment · Fixed by #3578

Comments

@chabb
Copy link

chabb commented Mar 12, 2019

Reproduction link

https://ng-zorro-antd-start-vjhban.stackblitz.io

Steps to reproduce

Make a component with an input. Use a button with an icon. Use interpolation in the view to display some text before the icon. It does not work.
It works when theres is no binding/interpolation in the HTML

What is expected?

The order of the HTML should be respected

What is actually happening?

The order is not respected. The icon comes before the text

It might because of the moveIcon method in nz-button-component.ts. I am taking a look

Environment Info
ng-zorro-antd 7.0.2
Browser Chrome latest
@wzhudev
Copy link
Member

wzhudev commented Mar 13, 2019

Boilerplate related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants