-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
ion-delete-button icon not showing #1181
Comments
To demonstrate the workaround, the callback becomes:
|
Just for clarity:
|
Thanks @christyharagan for the super detailed report! Should be working in nightly within 20 minutes from this post, when the CDN is updated. The problem was that if a new item was created, its delete button wouldn't be shown until the list re-showed all the delete buttons again. Now an item shows its delete button on creation if the parent list is already showing delete buttons. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
I am using the ion-delete-button for, admittedly, the exact opposite use: to add items to a list (actually, it's a rather more complex use-case but that's the crux of the issue).
When the button is clicked and in the callback a new item added, the resulting row shows a blank icon for the delete button.
Looking at the html for this new row's delete button, it appears (in Chrome) that the ::before and ::after pseudo elements are missing.
The work-around is to (in a different "turn" - e.g. a setTimeout) hide then re-show the delete buttons.
I am using the nightly build of the code.
The following html snippet shows the bug: Click on the delete button for A or B, and a new row C is added, but with a blank delete button:
The text was updated successfully, but these errors were encountered: