# Select all messages in a long topic, then deselect the first one, and you will lose your selection

**URL:** https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655
**Category:** Bug
**Created:** [7 Diciembre, 2017 23:33 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655 "2017-12-07T23:33:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [7 Diciembre, 2017 23:33 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655/1 "2017-12-07T23:33:57Z")

</div>

Reproduction steps.

Step 1. Open a long topic with \> 100 messages:

 ![image](https://global.discourse-cdn.com/meta/original/3X/8/7/87e4cca5471050e348572bb56d9d49c0e67f692b.png)

Step 2. Select ALL messages (use wrench). It will say, e.g. 100 messages selected:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/f/ff4d2bef2f801c83b5316ffffd0290ae3151ab2d.png)

Step 3. De-select the first message. Now it says: 19 messages selected:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/3/535ed1c3fe62695fcfa412c2c7f23715c4926701.png)

I suppose that’s because only 20 messages are loaded initially on the page, and when you deselect one message, there are 19 messages remaining.

Now, if you proceed further and move the messages, only 19 messages will be moved.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [7 Diciembre, 2017 23:35 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655/2 "2017-12-07T23:35:25Z")

</div>

@zogstrip is this related to your recent changes ?

---

<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: [7 Diciembre, 2017 23:36 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655/4 "2017-12-07T23:36:22Z")

</div>

Haven’t pushed my code yet. Will make sure it works.

---

<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: [13 Diciembre, 2017 21:16 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655/5 "2017-12-13T21:16:29Z")

</div>

This is fixed in

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

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [16 Diciembre, 2017 23:00 UTC](https://meta.discourse.org/t/select-all-messages-in-a-long-topic-then-deselect-the-first-one-and-you-will-lose-your-selection/75655/6 "2017-12-16T23:00:01Z")

</div>

This topic was automatically closed after 3 days. New replies are no longer allowed.
