Comments (5)
Steps to reproduce this problem consistently:
- Assign workers to tasks until there is one free worker. Assign this last worker to any task - let's say, "trapper." (Or, if all workers are already assigned, try to assign one more to trapper.) This will disable the trapper plus button. (In the dev tools, the attribute
disabled="disabled"
gets added to the button). - Remove a worker from any task other than trapper, so you have a free worker again. The trapper "+" button, disabled in step 1, will incorrectly remain disabled.
- Try to assign this worker to "trapper." It won't work.
- To fix, remove a worker from "trapper." This will "unlock" the "+" button so you can add more trappers again.
- If the trapper "+" button is disabled when you have no trappers assigned, then you can't remove a trapper, and the only way to recover is to reload the page. (You can get into this state by clicking the "+" button when you have no trappers, and no free workers to assign.)
from level13.
a reliable way to stop buttons from responding is moving to a different camp and trying to assign workers.
from level13.
I've looked the code over a little, and a 'fix' could be done by adding a function that triggers every time the number of free workers changes, that re-evaluates the state of the stepper buttons.
I may implement this myself, shouldn't be too hard.
from level13.
Or making things simpler, just remove the logic of setting disabled. This is only a nice-to-have feature, even if button is not disabled, clicking on it will not bring in any problems.
from level13.
This should finally be fixed on master and the fix will be in the next update. Thank you for the detailed reproduction steps!
from level13.
Related Issues (20)
- [JS Error] TypeError: Cannot read properties of undefined (reading 'get') HOT 3
- Crash by missing newspaper description. HOT 2
- [JS Error] TypeError: Cannot read properties of null (reading 'description') HOT 2
- Crash on viewing trader HOT 2
- Can not equip certain equipment (hiking boots) HOT 1
- Infinite investigations in level 25 HOT 2
- Book with no information HOT 2
- Typo in readme HOT 1
- [Suggestion] build queue HOT 1
- [JS Error] TypeError: this.language.getIndefiniteArticle is not a function HOT 5
- Study HOT 3
- Camp Rest should take less time when less stamina needs to be recovered
- Camp nowhere HOT 1
- Weaver or Rope-maker? HOT 1
- [JS Error] TypeError: Cannot read properties of null (reading 'get') HOT 2
- Raids reset all resources to zero. HOT 1
- Build and dismantle a building to get infinite resources HOT 1
- Clicking "Outside" tab after editing item quantities to bring loses changes HOT 1
- delink http://playprosperity.ca/ due to being domain squatted HOT 1
- [JS Error] InternalError: too much recursion HOT 2
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 level13.