kkinder / puepy

Python+Webassembly Frontend Framework via PyScript
https://puepy.dev
Apache License 2.0
218 stars 9 forks source link

Incorrectly looking for id (the function) in kwargs: #28

Closed kkinder closed 3 months ago

kkinder commented 3 months ago

Oops. In core.py, I'm looking for id (as in the function) in kwargs, but it should be looking for the string ("id").

        if id in kwargs:
            self._element_id = kwargs["id"]
        elif self._page and self._page.application:
            self._element_id = self._page.application.element_id_generator.get_id_for_element(self)
        else:
            self._element_id = f"ppauto-{id(self)}"