From 1018fbf40ddd120fc7ee560bb7ebb5fbbb03fcfe Mon Sep 17 00:00:00 2001 From: jaredb7 Date: Fri, 7 Apr 2023 19:19:05 +1000 Subject: [PATCH] Fix Excluded Species search for Chrome Appears to be a issue scrolling a select list option into view and then setting it's selected state to true (as if the user had clicked on it) this seems to break all future calls of scrollIntoView on any options, regardless if the selected state if removed from all options. scrollIntoView works perfectly otherwise and opted to apply a style to visually highlight the option. This turned out way better --- homepage/style.css | 6 ++++++ scripts/exclude_list.php | 22 ++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/homepage/style.css b/homepage/style.css index fff058a..69c350a 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -828,6 +828,12 @@ pre#timer.bash { background-color: #9fe29b; } +.exclude_species_list_option_highlight { + color: black; + background-color: rgb(119, 196, 135); + font-weight: bolder; +} + #ddnewline::before { content: none; } \ No newline at end of file diff --git a/scripts/exclude_list.php b/scripts/exclude_list.php index d3d496f..f719679 100644 --- a/scripts/exclude_list.php +++ b/scripts/exclude_list.php @@ -7,6 +7,8 @@

All Species Labels

+
+ Once the desired species has been highlighted, select it and click ADD to have it excluded.