Fixed actor count filter showing 1 when none are available, fixed search input not submitting on enter on mobile.
This commit is contained in:
@@ -41,8 +41,9 @@ const range = ref({
|
||||
|
||||
const minValue = computed(() => Math.min(range.value.a, range.value.b));
|
||||
const maxValue = computed(() => Math.max(range.value.a, range.value.b));
|
||||
const minPercentage = computed(() => ((minValue.value - props.min) / (props.max - props.min)) * 100);
|
||||
const maxPercentage = computed(() => ((maxValue.value - props.min) / (props.max - props.min)) * 100);
|
||||
const span = computed(() => props.max - props.min || 1); // a collapsed range (min equals max) would divide by zero
|
||||
const minPercentage = computed(() => ((minValue.value - props.min) / span.value) * 100);
|
||||
const maxPercentage = computed(() => ((maxValue.value - props.min) / span.value) * 100);
|
||||
|
||||
function set(type = 'change') {
|
||||
if (props.values) {
|
||||
|
||||
Reference in New Issue
Block a user