Feature No Code Attached Yet
avatar sakiss
sakiss
29 Dec 2023

Steps to reproduce the issue

Create an "Integer" custom field.
In its settings set:
First : 10000
Last: 10000000

Articles-Edit-Field-joomla4-Administration

Now open an article.

Expected result

Load the article.

Actual result

Blank page.
The browser hangs as it has to create a big drop-down.

Additional comments

The drop-down solution is not ideal at all.

  1. The admin/user has to scroll a long list, to find a number.
  2. It hangs when dealing with big range of numbers (as reported). I faced that many times when i tried to use it for prices.

My suggestion is to replace the drop-down with the input number. That solves the problems i reported and has all the features of the current "Integer" (min, max, step).

avatar sakiss sakiss - open - 29 Dec 2023
avatar joomla-cms-bot joomla-cms-bot - change - 29 Dec 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Dec 2023
avatar brianteeman
brianteeman - comment - 29 Dec 2023

Just create a text field with a filter integer.

With such a giant range of values no one is going to want to scroll through a list

avatar richard67
richard67 - comment - 30 Dec 2023

Would be cool if we could have different layouts for that field, like dropdown (which we have now) and slider. For such large ranges a slider could be appropriate.

avatar Fedik
Fedik - comment - 30 Dec 2023

Using such big range obviously will cause a problem somewhere: or server, or on client side. It is expected.
For now can use what @brianteeman suggested.

If you just want to ask for new custom field that implement "number" input, then please edit the issue description so it is clear "Feature request", or open a new issue for it.

Thanks.

btw: Joomla already have this field type

class NumberField extends FormField
, but not as custom field.

avatar Fedik Fedik - change - 30 Dec 2023
Labels Added: Information Required
avatar Fedik Fedik - labeled - 30 Dec 2023
avatar brianteeman
brianteeman - comment - 30 Dec 2023

BTW the number field is very limited in functionality on safari
https://caniuse.com/input-number

avatar sakiss
sakiss - comment - 30 Dec 2023

Guys as a developer i can find the way out.
The point of this, is to fix or improve the way it works.

Any range that exceeds 1000 numbers renders it useless and this is a very usual real world scenario.
Not to mention that it is almost impossible to use it, after a certain point from the user perspective.

@brianteeman not sure that i get the safari limitations. As far as i can see any version after 2010 seems to support this.

Anyway, if the release leader wants to fix that, i can create a PR.

avatar Quy
Quy - comment - 10 Jan 2024

Please submit PR. It should also fix #27877. Thanks.

avatar sakiss
sakiss - comment - 12 Jan 2024

I need to get a green light from the release leader.

avatar LadySolveig
LadySolveig - comment - 12 Jan 2024

Sure ? thank you @sakiss ? great if we can also fix the issue @Quy mentioned with your PR.
Many thanks for your willingness.

avatar Quy Quy - change - 16 Jan 2024
Labels Removed: Information Required
avatar Quy Quy - unlabeled - 16 Jan 2024
avatar brianteeman
brianteeman - comment - 16 Jan 2024

@brianteeman not sure that i get the safari limitations. As far as i can see any version after 2010 seems to support this.

There was an error on the caniuse website that has now been resolved. The issue is onlt with Safari on ios

avatar Hackwar Hackwar - change - 26 Mar 2024
Labels Added: Feature
avatar Hackwar Hackwar - labeled - 26 Mar 2024
avatar rdeutz
rdeutz - comment - 27 Apr 2024

@sakiss do you still wnat to fix the issue?

avatar sakiss
sakiss - comment - 27 Apr 2024

@rdeutz yes i will create a PR soon.

avatar sakiss sakiss - change - 24 Jun 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-06-24 13:41:03
Closed_By sakiss
avatar sakiss sakiss - close - 24 Jun 2024

Add a Comment

Login with GitHub to post a comment