Closed stefnoten-aca closed 1 year ago
I believe I'm hitting a very similar situation my rendered html is as follows:
<table>
<tbody>
<tr>
<td>
<span
class="sc-kvZOFW sc-bbmXgH
button
normalButton
size_medium
variant_text
sc-elJkPf gavsFt"
data-mosaic-id="action_primary_archive"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-
textSizeMedium css-1e6y48t-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Archive
</button>
</span>
</td>
</tr>
</tbody>
</table>
When I use the following selector it fails: tbody tr:nth-of-type(1) [data-mosaic-id='action_primary_archive'] button
. I get the same TypeError: Cannot read properties of null (reading 'parentElement')
@owenallenaz / @stefnoten-aca can you please post a fully reproducible test case so I can fix this ? I need the minimal HTML code and the selector yielding the error to be able to spot and correct the bug. Please specify your environment too (browser, framework, operating system and version of each of these component). Thank you for your help.
@dperini i also have a case like the following
&:disabled {
svg path {
fill: green
}
}
if I use nwsapi, the generated functions reach a state that throws typeError like the one above. Adding a null check like I added in #78 bypasses the error, but it probably ain't the right fix!
@stefnoten-aca @computnik Thank you for reporting this bug. To improve, next time please include a code snippet showing the bug in browsers. This issue should have been resolved by commit 12f9f59c2
I'm getting following error:
This occurs in following generated code (see references to comments in the code):
e
is nulle
can be set to null at (3), becausen
may leak from (2) where it may be null if e.g. no ancestor fieldset is foundThis code seems to be generated from this CSS: