Comments (3)
Here are two screenshots of the bug.
I chose one "Glas" of "Crepes" pressing the "G" button on my keyboard:
But when I click on the dropdown, I can't chose "Glas":
from coocook.
@MarkusLeupold Did you receive two error 500 responses because of this issues? I was warned about two 500s in the server error log.
Some quick notes:
Could this be a bug in Chromium or Bootstrap?
Currently we use jQuery .toggle()
to show/hide the select options. Is that a valid way of disabling option fields?
from coocook.
@dboehmer When I noticed the issue, I didn't try to submit the false unit (But thinking about it now, I wonder that I did not do that. Normally I like to check out what happens in such cases).
But I remember that I actually did get one server-side error in the same Coocook session yesterday. Maybe, I already achieved to select an unavailable unit before and didn't notice the issue at that time.
I just checked out the code in dev tools:
- There are
<option>
elements for all units inside the<select>
element. For all units that are not available for the chosen ingredient, the<option>
element simply hasdisplay: none
- That means, that inside the DOM, all
<option>
s are still present - Regarding the set of selectable options in a select, the browser doesn't care if some
<option>
element is not displayed, because this only affects the element in the dropped-down list itself. Thedisplay
property isn't for completely making elements unavailable in DOM—just to make them not visible.
How to solve this:
- Only put those
<option>
s inside the<select>
, that are actually available - Since there is already some code setting the
<option>
'sdisplay
property, this should be easily done
from coocook.
Related Issues (20)
- Remove jQuery HOT 2
- Don’t send email to unknown addresses when password recovery is requested
- Change year of Copyright to 2021 HOT 2
- Provide “share link” to public recipe view in recipe editor
- Encode URLs in HTML attributes
- User cannot view project by organization membership and permission HOT 1
- Send code for copy & paste for password recovery, teach users to never click links in emails
- Hide user profiles from search engines and unauthenticated users
- Add example for coocook_local.yaml
- t/script_passwd.t fails if $USER is not set
- Black links in footer
- Broken tests after hiding user profiles for searching engines
- redesigned landing page HOT 1
- Update marked.js HOT 1
- Create recipe from freestyle dish
- Export all public projects as SQL dump for development
- Rename "import recipe" to "use recipe" when creating a dish from a recipe
- Bootstrap color theme HOT 3
- Error when creating tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coocook.