discourse/app
Joffrey JAFFEUX d62c32ba71
FIX: allows selectText to take a scroll position as opt (#28554)
Prior to this fix using:

- `replaceText(...)`
- `selectText(..., ..., { scroll: true})`

Wouldn't have the expected behaviour as the scroll from selectText will attempt to save the scroll position and restore it AFTER the replacement happened. This commit allows scroll to be a Boolean or a Number, when a number, it will be used to restore the scrollTop position.

I tried to write tests for this specific behavior but couldn't reproduce the issue in tests.
2024-08-26 18:32:52 +02:00
..
assets FIX: allows selectText to take a scroll position as opt (#28554) 2024-08-26 18:32:52 +02:00
controllers FEATURE: Allow showing site text search in selected locale (#28453) 2024-08-26 11:25:36 +10:00
helpers UX: Use localized time format in embedded comments (#28014) 2024-07-22 18:42:36 +08:00
jobs DEV: Allow using an AR relation as a model in services 2024-08-20 16:32:46 +02:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FIX: Add users to user directory on account activation (#28505) 2024-08-26 18:01:24 +03:00
serializers FIX: Return properly interpolated translations for flags 2024-08-26 16:46:30 +02:00
services DEV: Use Service::Base for suspend and silence actions (#28459) 2024-08-22 14:38:56 +03:00
views DEV: Convert account activation pages to use Ember (#28206) 2024-08-12 18:02:00 -03:00