Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable Label? #15

Closed
loudking opened this issue Oct 4, 2017 · 1 comment
Closed

How to disable Label? #15

loudking opened this issue Oct 4, 2017 · 1 comment

Comments

@loudking
Copy link

loudking commented Oct 4, 2017

Hi I have following code:

        <Form inline>
            <FormGroup>
                <Label htmlFor="file-upload" role="button" className="btn btn-primary" disabled={props.isViewMode}><i className="fa fa-upload"></i> Upload</Label>
                <Input type="file" style={{display: 'none'}} id="file-upload" accept="image/*" onChange={props.handleFileUpload} disabled={props.isViewMode} />
            </FormGroup>
        </Form>

The label and input are functionally enabled and disabled as isViewMode switches but the Label always looks like enabled. Can you please tell me the correct syntax of disable a label?

@woothu
Copy link
Contributor

woothu commented Jun 25, 2020

The components you have mention are not part of our library.

@woothu woothu closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants