Skip to content

Hi there @codingjoe! #363

@codingjoe

Description

@codingjoe

Hi there @codingjoe!

Please note that this change broke the site I built. The reason is that I have a file drop zone that is in a <label> and I think that the browser wont allow a label to point to a non input element, meaning that if i click on the zone it wont prompt the file browser. I am not sure of this but this is what I saw. i am going to hold off on upgrading to version 6.

This is both an issue in Chrome and Safari.

Works:

<label class="big-file-drop-zone" for="doc">
<input type="file" id="doc" .... />
</label>

Works:

<label class="big-file-drop-zone" for="doc">
<s3-file> 
<input type="file"  id="doc" />
</s3-file>
</label>

Does not work:

<label class="big-file-drop-zone" for="doc">
<s3-file id="doc"> 
<input type="file" />
</s3-file>
</label>

Originally posted by @yardensachs in #357 (comment)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions