Only inputs react on binding
This commit is contained in:
@@ -38,9 +38,10 @@ class mk:
|
||||
@staticmethod
|
||||
def manage_binding(ft, binding: Binding):
|
||||
if binding:
|
||||
# update the component to post on the correct route
|
||||
htmx = binding.get_htmx_params()
|
||||
ft.attrs |= htmx
|
||||
if ft.tag in ["input"]:
|
||||
# update the component to post on the correct route input and forms only
|
||||
htmx = binding.get_htmx_params()
|
||||
ft.attrs |= htmx
|
||||
|
||||
# update the binding with the ft
|
||||
ft_attr = binding.ft_attr or get_default_ft_attr(ft)
|
||||
|
||||
Reference in New Issue
Block a user