I was trying to type f2f2f2, but I can only type f2. The moment I try to type the second f (like f2f) it reverts to ff22ff automatically. This happens on both the Color and Text Color when trying to create a new category (or editing it).
Bedankt voor het rapport. Ik kan het ook reproduceren op Meta. Bovendien is het onmogelijk om te verwijderen wat u aan het typen was met de backspace-knop op het toetsenbord.
Als tijdelijke oplossing terwijl we dit probleem oplossen, kunt u de hexadecimale waarde rechtstreeks in het veld kopiëren en plakken.
I’m not a developer, so I don’t know this on a deeper level, but looking at the commit, it says: // auto fill common hex codes like #F8F -> #F8F8F8 and #DDD -> #DDDDDD
Why would it behave this way?
I see how adding fff and hitting save would automatically save as ffffff, but while typing, there should be no auto fill happening in real time (if that’s what’s happening).
What if I want to type f2ff32? Right now, I’m stuck to it always defaulting to f2f2f2, which was the issue on my OP.
I took a shot at improving the suggestions from the autocomplete hex feature initially. Though I think the only real solution here is to prevent the form from changing the text color value while you are typing.
We do still need to check the value to try and ensure we have a valid hex code, but I’ve changed the approach so that it only checks the value if you click or tab out of the field or when submitting the form.
Het evalueert altijd de eerste 6 tekens, dus zelfs als ik f2f299f2 heb, gaat het ervan uit dat het f2f299 is.
Het kan # volledig negeren, wat soms is wat we krijgen van bepaalde apps (bijvoorbeeld Shottr geeft me de volledige #f2f2f2). Het stelt mensen in staat om gewoon te kopiëren en plakken wat ze uit een app krijgen of zelfs hoe ze gewend zijn de hexadecimale code te typen. Dus typen/plakken van #f2f2f2, f2f2f2, #f2f2f29393, of f2f2f29393 zouden dezelfde kleur krijgen.
Beide benaderingen zouden het super flexibel maken. Als ik #f2f2f2 uit een app krijg, snijdt het de laatste 2 er niet af, omdat het niet beperkt is tot slechts 6 tekens, en het accepteert het nog steeds als een kleur, omdat het de # negeert.
Vervolgens, wanneer het de categorie opslaat, verwijdert het de # en eventuele extra tekens boven de 6.
Wat denk je?
Het kan nog steeds automatisch aanvullen bij opslaan voor bepaalde kleuren zoals fff, 000, 111, enz.