diff --git a/puepy/core.py b/puepy/core.py index fb6967b..330bd6d 100644 --- a/puepy/core.py +++ b/puepy/core.py @@ -299,11 +299,13 @@ def _render_onto(self, element, attrs): element.setAttribute("checked", self.origin.state[self.bind]) else: element.checked = bool(self.origin.state[self.bind]) + element.setAttribute("checked", self.origin.state[self.bind]) else: if is_server_side: element.setAttribute("value", self.origin.state[self.bind]) else: element.value = self.origin.state[self.bind] + element.setAttribute("value", self.origin.state[self.bind]) self._add_event_listener(element, "input", self.on_bind_input) elif self.bind: