   (let [{:keys [width height]} (geom/size shape)
         style (make-style shape)
         props {:x x1 :y y1 :width width :height height}]
-    (letfn [#_(on-blur [ev]
-              (rlocks/release! :ui/text-edit)
-              (on-done))
-            (on-input [ev]
+    (letfn [(on-input [ev]
               (let [content (dom/event->inner-text ev)]
                 (st/emit! (uds/update-text id {:content content}))))]
-      [:g
-       #_[:rect (merge props +select-rect-attrs+)]
-       [:foreignObject props
-        [:div {:style style}
-         [:p {:ref "container"
-              ;; :on-blur on-blur
+      [:foreignObject props
+       [:div {:style style
+              :ref "container"
               :on-input on-input
-              :contentEditable true}]]]])))
+              :contentEditable true}]])))
 
 ;; --- Text Shape Wrapper
 


;; --- Text Component

(declare text-shape)
(declare text-shape-wrapper)
(declare text-shape-edit)


        [shape] (:rum/args own)]
    (when (not= shape old-shape)
      (let [dom (mx/ref-node own "fobject")
            html (mx/render-static-html (text-shape-html shape))]
        (set! (.-innerHTML dom) html)))
    own))

