Skip to content

Remove binding for nonexistent SyntheticDataTransfer class #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/react_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ SyntheticFormEvent syntheticFormEventFactory(events.SyntheticFormEvent e) {
}

/// Wrapper for [SyntheticDataTransfer].
SyntheticDataTransfer syntheticDataTransferFactory(events.SyntheticDataTransfer dt) {
SyntheticDataTransfer syntheticDataTransferFactory(DataTransfer dt) {
if (dt == null) return null;
List<File> files = [];
if (dt.files != null) {
Expand Down
11 changes: 1 addition & 10 deletions lib/src/react_client/synthetic_event_wrappers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ class SyntheticFocusEvent extends SyntheticEvent {
@anonymous
class SyntheticFormEvent extends SyntheticEvent {}

@JS()
@anonymous
class SyntheticDataTransfer {
external String get dropEffect;
external String get effectAllowed;
external List<File> get files;
external List<String> get types;
}

@JS()
@anonymous
class SyntheticMouseEvent extends SyntheticEvent {
Expand All @@ -77,7 +68,7 @@ class SyntheticMouseEvent extends SyntheticEvent {
external num get clientX;
external num get clientY;
external bool get ctrlKey;
external SyntheticDataTransfer get dataTransfer;
external DataTransfer get dataTransfer;
external bool get metaKey;
external num get pageX;
external num get pageY;
Expand Down