Skip to content

Commit 7daceca

Browse files
authored
Merge pull request #18 from kRITZCREEK/fix-rowspan-property-reset
Resets row and colspan to 1 instead of undefined
2 parents e11ecc5 + 642368e commit 7daceca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Halogen/VDom/DOM/Prop.purs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,7 @@ removeProperty ∷ ∀ eff. Fn.Fn2 String DOM.Element (Eff (dom ∷ DOM | eff) U
193193
removeProperty = Fn.mkFn2 \key el →
194194
case typeOf (Fn.runFn2 Util.unsafeGetAny key el) of
195195
"string"Fn.runFn3 Util.unsafeSetAny key "" el
196-
_ → Fn.runFn3 Util.unsafeSetAny key Util.jsUndefined el
196+
_ → case key of
197+
"rowSpan"Fn.runFn3 Util.unsafeSetAny key 1 el
198+
"colSpan"Fn.runFn3 Util.unsafeSetAny key 1 el
199+
_ → Fn.runFn3 Util.unsafeSetAny key Util.jsUndefined el

0 commit comments

Comments
 (0)