Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { axe } from 'vitest-axe'
import { ComponentUnderTest, FileUploadWithField } from './basic'

describe('File Upload', () => {
it.skip('should have no a11y violations', async () => {
it('should have no a11y violations', async () => {
const { container } = await act(async () => render(<ComponentUnderTest />))
const results = await axe(container)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ const formattedValue = computed(() => {
return v ? formatter.format(v.toDate(getLocalTimeZone())) : 'Select date and time'
})

const onTimeChange = (e: Event & { currentTarget: HTMLInputElement }) => {
const [hours, minutes] = e.currentTarget.value.split(':').map(Number)
const onTimeChange = (e: Event) => {
const target = e.target as HTMLInputElement
const [hours, minutes] = target.value.split(':').map(Number)
const current = value.value[0] ?? new CalendarDateTime(2025, 1, 1, 0, 0)
value.value = [current.set({ hour: hours, minute: minutes })]
}
Expand Down