# How to ignore mutations for inline decorations?

**URL:** https://discuss.prosemirror.net/t/how-to-ignore-mutations-for-inline-decorations/5900
**Category:** Uncategorized
**Created:** [October 8, 2023, 12:44pm UTC](https://discuss.prosemirror.net/t/how-to-ignore-mutations-for-inline-decorations/5900 "2023-10-08T12:44:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Mr3zee](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@Mr3zee](https://discuss.prosemirror.net/u/Mr3zee)
#### Post date: [October 8, 2023, 12:44pm UTC](https://discuss.prosemirror.net/t/how-to-ignore-mutations-for-inline-decorations/5900/1 "2023-10-08T12:44:39Z")

</div>

Hi! I stumbled upon a problem with inline decorations. I want to be able to ignore mutation events occurring for inline decoration DOM elements, like it is done automatically for widget decorations, but I see no way of doing it. Is it intended to be that way and there are some problems with such approach or can it be added somehow?

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)
#### Post date: [October 8, 2023, 12:58pm UTC](https://discuss.prosemirror.net/t/how-to-ignore-mutations-for-inline-decorations/5900/2 "2023-10-08T12:58:57Z")

</div>

What kind of decorations are these? What kind of mutations? If they are widgets, mutations inside of them should be ignored by default.

---

<div class="post-metadata">

### Author: ![Mr3zee](https://discuss.prosemirror.net/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@Mr3zee](https://discuss.prosemirror.net/u/Mr3zee)
#### Post date: [October 8, 2023, 1:06pm UTC](https://discuss.prosemirror.net/t/how-to-ignore-mutations-for-inline-decorations/5900/3 "2023-10-08T13:06:27Z")

</div>

Decorations are inline. Mutations in general any, but right now I specifically interested in ignoring mutations when a classname is added or removed to an inline decoration element
