Skip to content

Commit

Permalink
fix: remove stuff because dont need flatpickr anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
LEstradioto committed Feb 27, 2025
1 parent 2238514 commit cd165e2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/javascript/madmin/controllers/filter_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,6 @@ export default class extends Controller {
const input = conditionElement.querySelector(`.${inputTypeClass}`) || conditionElement.querySelector('.input-type-text')

conditionElement.querySelectorAll('.select-value').forEach(input => {
// Skip datetime inputs on mobile devices
if (input.type === 'datetime-local') {
input.value = ''
return
}

input.classList.add('hidden')
input.disabled = true
input.value = ''
Expand All @@ -111,13 +105,6 @@ export default class extends Controller {
if (filterType === 'boolean') {
input.value = 'true'
}

// Handle Flatpickr inputs differently on mobile
if (input.type === 'hidden' && input.nextElementSibling?.type === 'datetime-local') {
input.nextElementSibling.classList.remove('hidden')
input.nextElementSibling.disabled = false
return
}
}

// Private Methods
Expand Down

0 comments on commit cd165e2

Please sign in to comment.