diff --git a/tachys/src/html/event.rs b/tachys/src/html/event.rs
index a0dec30e6..1b5a2c9c0 100644
--- a/tachys/src/html/event.rs
+++ b/tachys/src/html/event.rs
@@ -15,7 +15,6 @@ use std::{
ops::{Deref, DerefMut},
rc::Rc,
};
-use wasm_bindgen::convert::FromWasmAbi;
/// A cloneable event callback.
pub type SharedEventCallback = Rc>;
@@ -396,7 +395,7 @@ impl ToTemplate for On {
/// A trait for converting types into [web_sys events](web_sys).
pub trait EventDescriptor: Clone {
/// The [`web_sys`] event type, such as [`web_sys::MouseEvent`].
- type EventType: FromWasmAbi;
+ type EventType;
/// Indicates if this event bubbles. For example, `click` bubbles,
/// but `focus` does not.
@@ -450,13 +449,13 @@ impl EventDescriptor for Capture {
/// A custom event.
#[derive(Debug)]
-pub struct Custom {
+pub struct Custom {
name: Cow<'static, str>,
options: Option>,
_event_type: PhantomData E>,
}
-impl Clone for Custom {
+impl Clone for Custom {
fn clone(&self) -> Self {
Self {
name: self.name.clone(),
@@ -466,7 +465,7 @@ impl Clone for Custom {
}
}
-impl EventDescriptor for Custom {
+impl EventDescriptor for Custom {
type EventType = E;
fn name(&self) -> Cow<'static, str> {
@@ -485,7 +484,7 @@ impl EventDescriptor for Custom {
}
}
-impl Custom {
+impl Custom {
/// Creates a custom event type that can be used within
/// [`OnAttribute::on`](crate::prelude::OnAttribute::on), for events
/// which are not covered in the [`ev`](crate::html::event) module.