mirror of https://github.com/zulip/zulip.git
a537ecc587
We add disabled prop on buttons only and we add the css for buttons (and some specific class elements) when disabled as 'cursor: not-allowed' or 'pointer-events: none' which means the user cannot use these buttons when disabled. This is not the case for the avatar widget as we use a div element there and not button and neither those specific classes which has appropriate styles defined. We use the avatar image block in two ways - for showing image and as a clickable target (which is actually a div element) for uploading, so instead of adding 'disabled' prop we are hiding (adding display: none) the div such that it is not visible on hover and also cannot be clicked. |
||
---|---|---|
.. | ||
node_tests | ||
puppeteer_lib | ||
puppeteer_tests | ||
zjsunit |