Merge branch 'staging' into slash-command-enums

This commit is contained in:
Cohee
2024-06-23 15:01:55 +03:00
21 changed files with 493 additions and 190 deletions

View File

@@ -142,7 +142,10 @@ class PresetManager {
* @param {string} value Preset option value
*/
selectPreset(value) {
$(this.select).find(`option[value=${value}]`).prop('selected', true);
const option = $(this.select).filter(function() {
return $(this).val() === value;
});
option.prop('selected', true);
$(this.select).val(value).trigger('change');
}