We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2c150 commit ae73adfCopy full SHA for ae73adf
packages/yew/src/html/component/scope.rs
@@ -141,7 +141,7 @@ impl AnyScope {
141
/// Attempts to find a parent scope of a certain type
142
///
143
/// Returns [`None`] if no parent scope with the specified type was found.
144
- pub(crate) fn find_parent_scope<C: BaseComponent>(&self) -> Option<Scope<C>> {
+ pub fn find_parent_scope<C: BaseComponent>(&self) -> Option<Scope<C>> {
145
let expected_type_id = TypeId::of::<C>();
146
iter::successors(Some(self), |scope| scope.get_parent())
147
.filter(|scope| scope.get_type_id() == &expected_type_id)
0 commit comments