def prevent_default(self) -> Self:
        """Prevent the default behavior of the event.

        Returns:
            New EventHandler-like with preventDefault set to True.
        """
        return dataclasses.replace(
            self,
            event_actions={"preventDefault": True, **self.event_actions},
        )
Prevent the default behavior of the event.

        Returns:
            New EventHandler-like with preventDefault set to True.
        
reflex/event.py