Skip to content

Fix ComboBox widget panic on wasm#2078

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
Nisatru:fix-combo-box
Sep 10, 2023
Merged

Fix ComboBox widget panic on wasm#2078
hecrj merged 1 commit intoiced-rs:masterfrom
Nisatru:fix-combo-box

Conversation

@Nisatru
Copy link
Contributor

@Nisatru Nisatru commented Sep 10, 2023

The ComboBox widget always uses std::time::Instant which panics on Wasm.

-> switch to crate::core::time::Instant

@hecrj hecrj added this to the 0.12 milestone Sep 10, 2023
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@hecrj hecrj merged commit 4fe69c8 into iced-rs:master Sep 10, 2023
@Nisatru Nisatru deleted the fix-combo-box branch September 11, 2023 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments