Fix: AccessibleButton does not set disabled attribute (PSF-1055) (#8682)
* remove old styles for pin drop buttons Signed-off-by: Kerry Archibald <kerrya@element.io> * fully disable share location button until location is shared Signed-off-by: Kerry Archibald <kerrya@element.io> * set disabled on button Signed-off-by: Kerry Archibald <kerrya@element.io> * test AccessibleButton disabled Signed-off-by: Kerry Archibald <kerrya@element.io> * remove disbaled check in LocationPicker Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@@ -85,6 +85,7 @@ export default function AccessibleButton({
|
||||
const newProps: IAccessibleButtonProps = restProps;
|
||||
if (disabled) {
|
||||
newProps["aria-disabled"] = true;
|
||||
newProps["disabled"] = true;
|
||||
} else {
|
||||
if (triggerOnMouseDown) {
|
||||
newProps.onMouseDown = onClick;
|
||||
|
||||
Reference in New Issue
Block a user