#3488·iced

`keyed::Column` 重用不兼容的小组件状态

作者: JustSimplyKyle创建于 2026年9月26日更新于 2026年9月26日
标签bug

What is the expected behavior? `keyed::Column::diff` bypasses the widget tag check by calling `Widget::diff` directly. Changing its reconciliation callback fixes the panic: https://GitHub.com/iced-rs/iced/blob/10e9b995eb5af74dbac08ed62b01971fe7e495b2/widget/src/keyed/column.rs#L207 patch - |tree, child| child.as_widget_mut().diff(tree), + |tree, child| tree.diff(child.as_widget_mut()),