discourse/app/assets/javascripts
Joffrey JAFFEUX a441f07908
FIX: correctly clear the quote state (#23705)
Prior to this fix clicking outside text and reseting the selection wouldn't clear the quote state, which would cause a click on "reply" or "create" to start the composer with the quote state.

This commit attempts to simplify this behaviour by not mutating quote state while the menu is opened. The quote state will now only be cleared when the menu is closed.

No tests have ever been written for this complex and subtle behavior (both `mousedown` and `selectionchange` events can trigger the final `selectionChanged` codepath which prevents us to for example stop the event when clicking quote as it will still change the selection even if we can prevent the `mousedown`. Ideally a huge part of this code should be rewritten to be easier to test, this commit only attempt to fix a regression introduced when using FloatKit to position the menu.
2023-09-28 19:37:11 +02:00
..
admin A11Y: UI emoji are decorative, use alt="" (#23690) 2023-09-28 13:30:19 -04:00
bootstrap-json DEV: Make index.html a valid html (#23289) 2023-08-28 14:44:38 +02:00
confirm-new-email
deprecation-silencer DEV: move deprecation silencer to a shared package (#22668) 2023-07-18 19:07:20 +01:00
dialog-holder Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
discourse FIX: correctly clear the quote state (#23705) 2023-09-28 19:37:11 +02:00
discourse-common A11Y: aria-label for mobile topic list avatar (#23693) 2023-09-28 13:29:56 -04:00
discourse-hbr Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
discourse-plugins Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
discourse-widget-hbs Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
docs
ember-addons
ember-cli-progress-ci
ember-production-deprecations DEV: Clean up package.json files (#22349) 2023-06-30 13:01:45 +02:00
float-kit Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
locales DEV: Raise an error in test env when I18n interpolate argument is missing (#23527) 2023-09-13 10:53:48 +08:00
patches DEV: introduce Embroider behind a flag, and start testing in CI (#23005) 2023-09-07 13:15:43 +01:00
pretty-text Build(deps-dev): Bump markdown-it from 13.0.1 to 13.0.2 in /app/assets/javascripts (#23677) 2023-09-28 07:03:44 +08:00
select-kit Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
truth-helpers Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
wizard Build(deps): Bump ember-cli-babel in /app/assets/javascripts (#23667) 2023-09-26 17:52:08 +02:00
.licensee.json DEV: Update sub-dependencies (#22325) 2023-06-29 17:08:33 +02:00
.npmrc
handlebars-shim.js
js-processor.js DEV: Enable ember-this-fallback in themes (#23384) 2023-09-05 11:16:12 +02:00
package.json DEV: FloatKit (#23650) 2023-09-26 13:39:52 +02:00
polyfills.js
run-patch-package DEV: Automatically retry patch-package on failure (#23583) 2023-09-14 12:25:06 +01:00
service-worker.js.erb FIX: Ensure service-worker cache is cleaned correctly (#23204) 2023-08-23 13:58:32 +01:00
yarn.lock Build(deps-dev): Bump markdown-it from 13.0.1 to 13.0.2 in /app/assets/javascripts (#23677) 2023-09-28 07:03:44 +08:00