I figured out how to get it to work.
I have a switch connected to GPIO 21 on one side, and ground on the other. I initially set the resistor type to pulldown when configuring the input node. Changing the resistor type to pullup and checking the read initial state checkbox resolved the issue.