We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae19736 commit bab0a97Copy full SHA for bab0a97
javascript/ql/lib/semmle/javascript/frameworks/React.qll
@@ -806,10 +806,12 @@ private class ReactRouterLocationSource extends DOM::LocationSource::Range {
806
807
private class UseRefDomValueSource extends DOM::DomValueSource::Range {
808
UseRefDomValueSource() {
809
- exists(DataFlow::PropRead current, UseRefStep step | current = this |
810
- step.step(_, current) and
811
- current.mayHavePropertyName("current")
812
- )
+ this =
+ any(JsxAttribute attrib | attrib.getName() = "ref")
+ .getValue()
+ .flow()
813
+ .getALocalSource()
814
+ .getAPropertyRead("current")
815
}
816
817
0 commit comments