Fix rendering issue. Add active class
This commit is contained in:
@@ -55,6 +55,11 @@ feature -- Change
|
|||||||
do
|
do
|
||||||
if active /= a then
|
if active /= a then
|
||||||
active := a
|
active := a
|
||||||
|
if a then
|
||||||
|
add_class ("active")
|
||||||
|
else
|
||||||
|
remove_class ("active")
|
||||||
|
end
|
||||||
state_changes.replace (create {JSON_BOOLEAN}.make_boolean (a), "active")
|
state_changes.replace (create {JSON_BOOLEAN}.make_boolean (a), "active")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ feature -- Rendering
|
|||||||
l_attributes.append_character ('%"')
|
l_attributes.append_character ('%"')
|
||||||
end
|
end
|
||||||
Result := "<" + tag + " " + l_attributes
|
Result := "<" + tag + " " + l_attributes
|
||||||
if body.is_empty and not tag.same_string ("textarea") and not tag.same_string ("span") and not tag.same_string ("button") and not tag.same_string ("ul") then
|
if body.is_empty and not tag.same_string ("textarea") and not tag.same_string ("span") and not tag.same_string ("button") and not tag.same_string ("ul") and not tag.same_string ("div") then
|
||||||
Result.append (" />")
|
Result.append (" />")
|
||||||
else
|
else
|
||||||
Result.append (" >" + body + "</" + tag + ">")
|
Result.append (" >" + body + "</" + tag + ">")
|
||||||
|
|||||||
Reference in New Issue
Block a user