Comments (4)
@hello-ashleyintech ahhh ok thanks I will try this workaround 🙏
from bolt-js.
Hi, @jacklein! Thanks so much for submitting this question and for the video demonstrating your issue! 🙌
After doing some research on the select menu with external data types, it seems like the placeholder
is only intended to surface when an option is not selected. In this case, an option is considered "selected" once you select it from the menu and from that point onwards you have no choice but to select another option to change the value in the field.
Something you could try is calling a views.update
for your modal after hitting the "Add place" button that completely updates / replaces the form so it's fresh and new, but demonstrates all of your selected options below it like you've shown in the video.
I hope this helps! ✨
from bolt-js.
@hello-ashleyintech Thank you for the response! Sorry if I wasn't exactly clear up top, but I am calling views.update
with a fresh external select block. However, the state
object which has a selected_value
from when I do the first select doesn't get reset and gets passed to the new modal. Because of this, the new external select block shows the previously selected value. I tried to pass a fresh state
into the views.update
like:
views.update({
...
state: {},
...
})
but it doesn't seem like I can do this.
So ultimately I'm trying to reset the state
variable when I call views.update
.
from bolt-js.
Ah, I see! Thanks for the clarification @jacklein! 🙌
This may not be exactly what you want since it's not directly updating that state, but take a look at this suggestion and let me know if it would work in your use case!
from bolt-js.
Related Issues (20)
- `context.matches.groups` becomes undefined after a Web API call HOT 8
- Is it possible to get typing event or indicator when a user in slack starts typing in a message HOT 1
- `files` property missing in `app_mention` event HOT 3
- How to track of deleted users HOT 3
- Issue with extracting headers from incoming requests HOT 1
- User scope not working in OAuth HOT 3
- Message event payloads missing `team_id` in enterprise on mobile slack clients HOT 9
- Issue with `respond` to update message returning cant_update_message HOT 10
- Is there a way to get the event envelope and more specifically the event_context for a bolt message event? HOT 3
- No way to reliably determine which user + user token a message event was delivered on behalf of. .authorize returns an installation for an arbitrary user from the same workspace. HOT 1
- Downloading file-content when user upload a file/s in bot conversation. HOT 4
- Event for mpim creation (user-token scope) HOT 1
- deferInitialization option during App creation is not clearly explained HOT 2
- Dispatch_failed Error for Slack Bot Slash Commands in Socket Mode on GCP VM with Docker HOT 3
- Slack - Support of LLM streaming HOT 5
- Slack Bot works in my workspace, but doesn't respond when Installed elsewhere HOT 21
- AWS Lambda - Slack bolt error on starting AWSLabmdaReceiver HOT 3
- How to build dynamic form HOT 1
- issue in getting bot token HOT 6
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 bolt-js.