UNPKG

@ebay/ebayui-core

Version:

Collection of core eBay components; considered to be the building blocks for all composite structures, pages & apps.

19 lines (18 loc) 482 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class FileUploadInput { onCreate() { this.state = { dragging: false }; } handleFileChange(event) { const target = event.target; this.emit("input", { files: target.files, originalEvent: event }); } handleDragOver() { this.state.dragging = true; } handleDragLeave() { this.state.dragging = false; } } module.exports = FileUploadInput;