This commit is contained in:
Alexandre Bury 2020-06-18 10:05:32 -07:00
parent 55c4aa2716
commit e08f2e755b
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- Fixed `LinearLayout` giving children incorrect sizes. - Fixed `LinearLayout` giving children incorrect sizes.
- More accurate "important area" for `ShadowView` and `PaddedView`. - More accurate "important area" for `ShadowView` and `PaddedView`.
- Fix potential panic when calling `TextArea::set_cursor` before its first layout phase. - Fix potential panic when calling `TextArea::set_cursor` before its first layout phase.
- Disabled views no longer accept input if they are still in focus.
## 0.15.0 ## 0.15.0

View File

@ -209,7 +209,7 @@ impl<T: 'static> View for RadioButton<T> {
} }
fn on_event(&mut self, event: Event) -> EventResult { fn on_event(&mut self, event: Event) -> EventResult {
if !self.enabled() { if !self.enabled {
return EventResult::Ignored; return EventResult::Ignored;
} }