Fork me on GitHub
#portal
<
2024-01-28
>
dumrat15:01:58

What is this error in portal hiccup viewer? This happens for the below hiccup:

[:hiccup
 [:html
  {:lang "en"}
  [:head
   [:link {:rel "icon", :href "data:;base64,="}]
   [:meta {:charset "UTF-8"}]
   [:meta
    {:name "viewport",
     :content "width=device-width, initial-scale=1.0"}]
   [:title "Wallets"]
   [:script
    {:src ""}]]
  [:body
   {:hx-boost "true"}
   [:header
    [:h1
     [:sub-title "Wallets"]
     [:h2 "htmx book do-along exercise of wallets"]]]
   nil
   [:form
    {:action "/wallets/list", :method "get"}
    [:label {:for "search"} "Search Term"]
    [:input#search {:type "search", :name "q", :value ""}]
    [:input {:type "submit", :value "Search"}]]
   [:div
    [:table
     [:thead [:tr [:th "Name"] [:th "Description"] [:th]]]
     [:tbody
      [:tr
       [:td "test"]
       [:td "fsdf"]
       [:td
        [:a {:href "/wallets/edit/38"} "Edit"]
        [:a {:href "/wallets/view/38"} "View"]]]
      [:tr
       [:td "asd"]
       [:td "asd"]
       [:td
        [:a {:href "/wallets/edit/39"} "Edit"]
        [:a {:href "/wallets/view/39"} "View"]]]
      [:tr
       [:td "asd"]
       [:td "asd"]
       [:td
        [:a {:href "/wallets/edit/40"} "Edit"]
        [:a {:href "/wallets/view/40"} "View"]]]
      [:tr
       [:td "sss"]
       [:td "sss"]
       [:td
        [:a {:href "/wallets/edit/41"} "Edit"]
        [:a {:href "/wallets/view/41"} "View"]]]
      [:tr
       [:td "ddd"]
       [:td "ddd"]
       [:td
        [:a {:href "/wallets/edit/42"} "Edit"]
        [:a {:href "/wallets/view/42"} "View"]]]]]
    [:div
     [:span
      {:style "float: right"}
      nil
      [:a {:href "/wallets/list/?q=&page=1"} "Next"]]]]
   [:a {:href "/wallets/new"} "Add Wallet"]]
  [:footer [:p "no© Duminda Rathnayaka (2024)"]]]]

dumrat15:01:20

um error image at the bottom

dumrat15:01:22

This is in vscode extension btw

dumrat15:01:55

If I remove the [:span] element, error goes away. Is this a react issue?

djblue19:01:22

I can't see the error, did you want to post it again?