# Cannot interact with "details" macro in post preview

**URL:** https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496
**Category:** Feature
**Created:** [July 19, 2016, 7:31am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496 "2016-07-19T07:31:24Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [July 19, 2016, 7:31am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/1 "2016-07-19T07:31:24Z")

</div>

It doesn’t appear to be possible to interact with `[details]` macros in the preview when composing a topic. You _can_ interact with spoiler text, though. This is an issue where you’re composing a post which includes a lot of information in a `[details]` macro – like a long list – as you can’t ensure that you’ve got it right prior to publication without temporarily removing or “breaking” the `[details]` macro.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 19, 2016, 6:21pm UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/2 "2016-07-19T18:21:05Z")

</div>

> **Works for me**
>
> What have you tried on what browser and what happened?

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [July 20, 2016, 12:03am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/3 "2016-07-20T00:03:47Z")

</div>

Works for me in the posts once saved, but not in preview.

Works in:

- Edge 25.10586

Doesn’t work in:

- Firefox 49 (Developer Edition)
- Chrome 54 (Canary)

It looks as though this is built using the `<details>` element, which has [just been preffed on in Firefox 49](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details).

In Edge, which doesn’t natively support the behaviour of `<details>` and `<summary>`, there are `click` and `keydown` event handlers attached to the `<summary>` element. Are these handlers perhaps being inappropriately attached in Firefox and Chrome in the preview mode, resulting in double-handling of the behaviour? Or are they perhaps not being attached at all, and a browser bug in both Firefox and Chrome means these elements don’t behave as expected in the preview’s context?

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [July 20, 2016, 12:08am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/4 "2016-07-20T00:08:21Z")

</div>

I’ve seen it working in the _preview_ area in all recent Firefox. But I’m not running a bleeding edge. I’ve tested today with FF 46 and 47.

---

<div class="post-metadata">

### Author: ![barryvan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barryvan/32/82635_2.png) [@barryvan](https://meta.discourse.org/u/barryvan)
#### Post date: [July 20, 2016, 12:23am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/5 "2016-07-20T00:23:30Z")

</div>

> [@elijah](#):
>
> I’ve tested today with FF 46 and 47.

Yeah – my guess is that this is a bug related to the fact that the `<details>` element is now fully supported from Firefox 49; it’s likely that Discourse is applying a workaround for older versions which will no longer be relevant when Fx49 reaches stable in a month or two.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [July 20, 2016, 2:02am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/6 "2016-07-20T02:02:15Z")

</div>

Aha that is good to know cc @zogstrip

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 27, 2016, 6:54pm UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/7 "2016-07-27T18:54:30Z")

</div>

Just pushed a fix 🌵 The issue was that we were preventing all clicks in the preview…

[https://github.com/discourse/discourse/commit/e848c336bbbebbe035a5998baded6fbb68a06037](https://github.com/discourse/discourse/commit/e848c336bbbebbe035a5998baded6fbb68a06037)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [July 27, 2016, 6:57pm UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/8 "2016-07-27T18:57:57Z")

</div>

Do polls use links for their clicks? Might be something to test if it doesn’t. Not sure you want people clicking that in the Preview window.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 27, 2016, 8:01pm UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/9 "2016-07-27T20:01:46Z")

</div>

Nope. Polls use customized `<li>` elements 😉

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 28, 2016, 12:55am UTC](https://meta.discourse.org/t/cannot-interact-with-details-macro-in-post-preview/47496/10 "2016-07-28T00:55:00Z")

</div>

This topic was automatically closed after 6 hours. New replies are no longer allowed.
