ngx-copilot icon indicating copy to clipboard operation
ngx-copilot copied to clipboard

Angular 10.1: Copilot leaves "style" on "body" element

Open ksilz opened this issue 3 years ago • 5 comments

I'm using ngx-copilot with Angular 10.1. I use it to show two steps. After the last step, my code calls removeWrapper(). Still, ngx-copilot leaves some style code behind on my <html> element that wasn't there before the steps:

style="overflow: auto; --zoneY:179.375px; --zoneX:495.625px; --zoneColor: rgba(0, 0, 0, 0.7) ; --zoneSize:96.4063px;"

This code leads to a scrollbar appearing. Once I remove the style code, the scrollbar disappears. See below for a sample.

Is there a way for ngx-copilot to automatically remove the style code on my <html> element?

Style on body left behind

ksilz avatar Oct 06 '20 11:10 ksilz

Hi @ksilz I'll check and comment

leifermendez avatar Oct 07 '20 07:10 leifermendez

Not a problem, I've got a workaround where I delete the style attribute myself.

ksilz avatar Oct 07 '20 07:10 ksilz

In unrelated new, can I take a crack at improving the README next week? I'm a technical writer, too - here's my latest Baeldung article.

ksilz avatar Oct 07 '20 07:10 ksilz

Of course, it would be of great help to the community. I would appreciate it very much

leifermendez avatar Oct 07 '20 07:10 leifermendez

Ok, deal.

ksilz avatar Oct 07 '20 08:10 ksilz