Added mouse selection
This commit is contained in:
@@ -125,8 +125,6 @@ class Command:
|
||||
|
||||
def execute(self, client_response: dict = None):
|
||||
logger.debug(f"Executing command {self.name} with arguments {client_response=}")
|
||||
if self._htmx_extra.get("hx-target", "").startswith("#tsm_"):
|
||||
logger.warning(f" Command {self.name} needs a selection manager to work properly.")
|
||||
with ObservableResultCollector(self._bindings) as collector:
|
||||
kwargs = self._create_kwargs(self.default_kwargs,
|
||||
client_response,
|
||||
@@ -150,10 +148,6 @@ class Command:
|
||||
and r.get("id", None) is not None):
|
||||
r.attrs["hx-swap-oob"] = r.attrs.get("hx-swap-oob", "true")
|
||||
|
||||
if self._htmx_extra.get("hx-target", "").startswith("#tsm_"):
|
||||
ret_debug = [f"<{r.tag} id={r.attrs.get('id', '')}/>" if r else "None" for r in all_ret]
|
||||
logger.warning(f" {ret_debug=}")
|
||||
|
||||
return all_ret[0] if len(all_ret) == 1 else all_ret
|
||||
|
||||
def htmx(self, target: Optional[str] = "this", swap="outerHTML", trigger=None, auto_swap_oob=True):
|
||||
|
||||
Reference in New Issue
Block a user