-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into running-non-existent-component
- Loading branch information
Showing
5 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
components/dash-core-components/src/components/css/Dropdown.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
.dash-dropdown .Select-menu-outer { | ||
z-index: 1000; | ||
max-height: none; | ||
} | ||
|
||
.dash-dropdown .Select-menu, .Select-menu-outer { | ||
.dash-dropdown .Select-menu { | ||
max-height: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
components/dash-html-components/tests/test_div_tabIndex.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
from dash import Dash, Input, Output, State, html | ||
|
||
|
||
def test_dt001_div_tabindex_accept_string_and_number_type(dash_duo): | ||
app = Dash(__name__) | ||
app.layout = html.Div( | ||
[ | ||
html.Div(id="string-div", tabIndex="1"), | ||
html.Div(id="number-div", tabIndex=1), | ||
html.Button("string", id="trigger-string"), | ||
html.Button("number", id="trigger-number"), | ||
html.Pre(id="output-string-result"), | ||
html.Pre(id="output-number-result"), | ||
], | ||
style={"padding": 50}, | ||
) | ||
|
||
@app.callback( | ||
Output("output-string-result", "children"), | ||
Input("trigger-string", "n_clicks"), | ||
State("string-div", "tabIndex"), | ||
prevent_initial_call=True, | ||
) | ||
def show_div_tabindex_string_type(n_clicks, tabindex): | ||
if n_clicks: | ||
if isinstance(tabindex, str): | ||
return "success" | ||
return "fail" | ||
|
||
@app.callback( | ||
Output("output-number-result", "children"), | ||
Input("trigger-number", "n_clicks"), | ||
State("number-div", "tabIndex"), | ||
prevent_initial_call=True, | ||
) | ||
def show_div_tabindex_number_type(n_clicks, tabindex): | ||
if n_clicks: | ||
if isinstance(tabindex, int): | ||
return "success" | ||
return "fail" | ||
|
||
dash_duo.start_server(app) | ||
|
||
dash_duo.wait_for_element("#trigger-string").click() | ||
dash_duo.wait_for_element("#trigger-number").click() | ||
dash_duo.wait_for_text_to_equal( | ||
"#output-string-result", | ||
"success", | ||
) | ||
dash_duo.wait_for_text_to_equal( | ||
"#output-number-result", | ||
"success", | ||
) |