From 36a8b3638217b60c7a5e0508943e281add64a89e Mon Sep 17 00:00:00 2001 From: hq1 Date: Mon, 22 Jan 2024 15:32:11 +0100 Subject: [PATCH] CombBox bugfix: stale spinner on creatable options selection (#3713) --- lib/plausible_web/live/components/combo_box.ex | 2 +- .../live/components/combo_box_test.exs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lib/plausible_web/live/components/combo_box.ex b/lib/plausible_web/live/components/combo_box.ex index 4af94347f..b0f12449c 100644 --- a/lib/plausible_web/live/components/combo_box.ex +++ b/lib/plausible_web/live/components/combo_box.ex @@ -243,7 +243,7 @@ defmodule PlausibleWeb.Live.Components.ComboBox do > type_into_combo("test-creatable-component", "my new option") + |> find("input[type=hidden][name=some_submit_name][value=\"my new option\"]") + + assert Floki.attribute(creatable_option, "x-on:click") == [] + end end describe "async suggestions" do