It seems that the showDetails button is always in the active state by default, even when json-viewer is initialized with show-data-types="false"
and show-size="false"
. In that scenario the button then requires two clicks before it has the expected toggling effect.