{"action":"created","issue":{"url":"https://api.github.com/repos/pojome/elementor/issues/701","repository_url":"https://api.github.com/repos/pojome/elementor","labels_url":"https://api.github.com/repos/pojome/elementor/issues/701/labels{/name}","comments_url":"https://api.github.com/repos/pojome/elementor/issues/701/comments","events_url":"https://api.github.com/repos/pojome/elementor/issues/701/events","html_url":"https://github.com/pojome/elementor/issues/701","id":181548452,"number":701,"title":"Bug with Button Icon","user":{"login":"Pagester","id":20524372,"avatar_url":"https://avatars.githubusercontent.com/u/20524372?v=3","gravatar_id":"","url":"https://api.github.com/users/Pagester","html_url":"https://github.com/Pagester","followers_url":"https://api.github.com/users/Pagester/followers","following_url":"https://api.github.com/users/Pagester/following{/other_user}","gists_url":"https://api.github.com/users/Pagester/gists{/gist_id}","starred_url":"https://api.github.com/users/Pagester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pagester/subscriptions","organizations_url":"https://api.github.com/users/Pagester/orgs","repos_url":"https://api.github.com/users/Pagester/repos","events_url":"https://api.github.com/users/Pagester/events{/privacy}","received_events_url":"https://api.github.com/users/Pagester/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-06T23:15:10Z","updated_at":"2016-10-07T15:04:40Z","closed_at":null,"body":"We've found a strange bug when using the insert icon option in the button element.\r\n\r\n## **Problem**\r\nWhen you set the alignment of the icon it saves OK, but when you then view the page outside of elementor the icon is aligned to the opposite side. Refresh the Elementor page and the icon is now incorrectly aligned in the page builder aswell, despite the options alignment setting showing correctly in the editor sidebar.\r\n\r\nPlease see the screen shots for a more detailed view of whats happening.\r\n\r\n## **Source of Problem identified**\r\nWhat we have identified is that Elementor is adding in the following class, 6 times into the span style tag\r\n`elementor-button-icon elementor-align-icon-left`\r\n\r\n## **Observations**\r\nWe have reproduced this 3 times but every time has been different, no specific action has caused it, it just starts happening. So while we know the source of the problem we can't identify its root cause.\r\n\r\nIf I copy the button, the copy displays correctly but the original button above continues to have incorrect alignment. If I then delete the original and leave the copy, upon save the copy now starts showing with incorrect alignment.\r\n\r\n![elementor-button-icon-alignment-bug](https://cloud.githubusercontent.com/assets/20524372/19173923/f5517002-8c22-11e6-9787-25f7d70c9d52.gif)\r\n![elementor-button-icon-alignment-bug-cont](https://cloud.githubusercontent.com/assets/20524372/19173924/f5524428-8c22-11e6-979c-b6ffba2cf46b.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pojome/elementor/issues/comments/252276884","html_url":"https://github.com/pojome/elementor/issues/701#issuecomment-252276884","issue_url":"https://api.github.com/repos/pojome/elementor/issues/701","id":252276884,"user":{"login":"Pagester","id":20524372,"avatar_url":"https://avatars.githubusercontent.com/u/20524372?v=3","gravatar_id":"","url":"https://api.github.com/users/Pagester","html_url":"https://github.com/Pagester","followers_url":"https://api.github.com/users/Pagester/followers","following_url":"https://api.github.com/users/Pagester/following{/other_user}","gists_url":"https://api.github.com/users/Pagester/gists{/gist_id}","starred_url":"https://api.github.com/users/Pagester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pagester/subscriptions","organizations_url":"https://api.github.com/users/Pagester/orgs","repos_url":"https://api.github.com/users/Pagester/repos","events_url":"https://api.github.com/users/Pagester/events{/privacy}","received_events_url":"https://api.github.com/users/Pagester/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T15:04:40Z","updated_at":"2016-10-07T15:04:40Z","body":"**New Update**\r\n\r\nAfter extensive testing we have new information that correlates this to a very unusual bug within Elementor.\r\n\r\nIn the screenshot previous you will see that there are 6 additions of the class `elementor-button-icon elementor-align-icon-left` to the button span style tag.\r\n\r\nThis number equals the number of sections on the page before the button minus 1. So the page has 7 sections minus 1 equates to 6.\r\n\r\n## **Steps done to confirm**\r\n\r\nSo we added an icon to the button in the section above, and upon save this icon aligned incorrectly but the button below now displayed correctly.\r\n\r\nChecking the page source the span style had a total of 5 additions of the class `elementor-button-icon elementor-align-icon-left` to the button span style tag.\r\n\r\nThis sequence continued all the way up the page with the number of class additions reducing by 1 as we got to the page top.\r\n\r\nWe also replicated the same behavior by deleting each section, each time a section was deleted the class total reduced by 1.\r\n"}}
{"actor":{"display_login":"Pagester"}}