Bugfix: toggle should be disabled when a toggle column of table widget is not editable (#2327)

This commit is contained in:
Kiran Ashok 2022-02-23 10:27:55 +05:30 committed by GitHub
parent f2b0b880f1
commit af0ce7d8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,7 @@ export const Toggle = ({ readOnly, value, onChange, activeColor }) => {
onClick={() => {
if (!readOnly) toggle();
}}
disabled={readOnly}
/>
</label>
</div>