Skip to content

Image field also creates a text field #77

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

Closed
Cannonb4ll opened this issue Sep 25, 2016 · 4 comments
Closed

Image field also creates a text field #77

Cannonb4ll opened this issue Sep 25, 2016 · 4 comments
Milestone

Comments

@Cannonb4ll
Copy link

Image

I am not sure why this is happening, but my code is fairly simple:

schema: {
                    fields: [{
                        type: "image",
                        label: "Avatar",
                        model: "avatar",
                        required: true
                    }]
                },
@icebob
Copy link
Member

icebob commented Sep 26, 2016

It's a feature, because you can set image as a HTTP URL, or browse from computer and the component convert it to data URL.

@Cannonb4ll
Copy link
Author

There is no feature to make this configurable?

@lionel-bijaoui
Copy link
Member

Not for now, but we could add it for future version.
In the input field (that will be available in v0.5.0), "color" and "range" inputType also show the color value if set.
We need to add an option to show or hide it.
In the meantime, you can use CSS to hide that element visually:

input.form-control.link {
    display: none;
}

@icebob icebob added this to the v0.5.0 milestone Sep 26, 2016
icebob added a commit that referenced this issue Sep 26, 2016
@icebob
Copy link
Member

icebob commented Sep 26, 2016

Done.
Will be available in v0.5.0

@icebob icebob closed this as completed Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants