Input slots on vue-csv-input #94
-
Does anyone have an example where they are using the v-slot option of vue-csv-input? Same question as #79, but in their case the resolution was marked as complete that they were missing the fields prop on vue-csv-import. That is not the case here. This example works when I don't attempt use the v-slot in vue-csv-input (unformatted file input button), and fails with: "Cannot read properties of null (reading 'files')" upon selecting a file when I do. Looking at the source, it appears this is due to csvRef being null when the code tries to get the file selected. (line 72) Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Found a solution (and likely the reason for the error). I should not have embedded the input in the
|
Beta Was this translation helpful? Give feedback.
Found a solution (and likely the reason for the error). I should not have embedded the input in the
Changing to this allowed me to style the button as I needed: