We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7c56f0 commit c74f689Copy full SHA for c74f689
src/LiveComponent/assets/dist/live_controller.js
@@ -2834,8 +2834,7 @@ class LiveControllerDefault extends Controller {
2834
if (!(element instanceof HTMLElement)) {
2835
throw new Error('Could not update model for non HTMLElement');
2836
}
2837
- if (element instanceof HTMLInputElement
2838
- && element.type === 'file') {
+ if (element instanceof HTMLInputElement && element.type === 'file') {
2839
const key = (_a = element.dataset.model) !== null && _a !== void 0 ? _a : element.name;
2840
if ((_b = element.files) === null || _b === void 0 ? void 0 : _b.length) {
2841
this.pendingFiles[key] = element.files;
0 commit comments