def on_event_pre(self, e: Event) -> None:
        """Set values set on browser before calling event listeners."""
        super().on_event_pre(e)
        ct_msg = e.init.get('currentTarget', dict())
        if e.type in ('input', 'change'):
            # Update user inputs
            self._set_text_content(ct_msg.get('value') or '')
def on_event_pre ( self , e : Event ) -> None : super ( ) . on_event_pre ( e ) ct_msg = e . init . get ( 'currentTarget' , dict ( ) ) if e . type in ( 'input' , 'change' ) : self . _set_text_content ( ct_msg . get ( 'value' ) or '' )
Set values set on browser before calling event listeners.