Comments (1)
Thanks for submitting this @athioak7
With hindsight, I agree that this doesn't seem quite right, I think the current behaviour was inspired by chat based apps where enter normally sends the message and shift enter allows you to add a new line. Unfortunately a quick search on GitHub suggests there are a number of people out there making use of this behaviour.
Therefore I propose the following, adding a new prop submit_on_enter
which one can simply set to False
to ensure that pressing Enter creates a new line.
I have implemented this and created a pre-release, feedback is welcome
pip install dash-bootstrap-components==1.6.1rc2
Here's a simple app you can try with.
import dash_bootstrap_components as dbc
from dash import Dash
app = Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])
app.layout = dbc.Container(
dbc.Textarea(id="textarea", submit_on_enter=False), className="p-5"
)
if __name__ == "__main__":
app.run_server(debug=True)
from dash-bootstrap-components.
Related Issues (20)
- Support tooltips without IDs HOT 3
- [Bug] Console warning on dbc.Tooltip component HOT 3
- Web site is not showing components HOT 5
- Graphs in tabs example not rendering HOT 2
- Support 'clearable' in Input HOT 1
- Allow not showing up-down arrows in numeric HOT 1
- [BUG] dbc.Modal(style) is passed to fade-modal-show layer instead modal HOT 3
- Bootstrap stopped working HOT 4
- [docs] Burger hard to see in dark mode
- dbc.Spinner() intial load lags on launch HOT 2
- Debounce support for numeric value of seconds (like dcc.Input)
- [POPOVER] Legacy trigger error inside an iframe
- Offcanvas component not rendering as intended HOT 1
- Remove migration guide in docs
- selected attribute for dbc.Select HOT 1
- `dbc.Checklist` does not accept `label` as `list[Component]` like `dcc.Checklist` does HOT 3
- dash_bootstrap_components version versus python version HOT 5
- Nested tabs in `Offcanvas` component trigger scroll up event on tab change HOT 2
- Tooltip closing race condition with children change callback HOT 10
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 dash-bootstrap-components.