Comments (7)
Hello @prem-2301. Thank you for opening this issue.
I tried replicating your case, but I wasn't able to experience the same problem.
Could you provide a minimal reproduction example so that we could investigate the problem? 🤔
A repository could work very well in this case.
I've tried with the following setup:
import * as React from "react";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider";
import { DatePicker } from "@mui/x-date-pickers/DatePicker";
import { Router, Routes, Route, Link } from "react-router-dom";
import { createBrowserHistory } from "history";
function BasicPicker() {
return (
<>
Some random text
<LocalizationProvider dateAdapter={AdapterDayjs}>
<DatePicker label="Basic date picker" />
</LocalizationProvider>
</>
);
}
export default function PickerInIframe() {
const history = createBrowserHistory();
return (
<Router location={history.location} navigator={history}>
<Routes>
<Route
key="home"
path="/"
element={'Home'}
/>
<Route
key="iframe"
path="pickers-frame"
element={<BasicPicker />}
/>
</Routes>
<Link to="/">Home</Link>
<Link to="/pickers-frame" target="pickers_frame">
Open iframe
</Link>
<iframe name="pickers_frame" title="iFrame" width={500} height={450} />
</Router>
);
}
from mui-x.
The date picker code:
https://github.com/prem-2301/datepickerissue
This is hosted here : https://aquamarine-heliotrope-d78393.netlify.app/embed
The iframe code (where the issue is occuring):
https://codesandbox.io/p/devbox/date-picker-7rgphf?file=%2Fapp%2Fembed%2Fpage.js%3A16%2C68
from mui-x.
Thank you for providing a reproduction example. 👍
I could reproduce it using a minimal example with two separate pages locally.
But what browser are you experiencing this issue on?
For me, it was only Firefox that was exhibiting this behavior... 🤷
I also found the same question on StackOverflow.
from mui-x.
Hi, I looked into the stack solution but there's no such prop for DesktopDatePicker. Also, this issue is replicating on all browsers for us (Edge, Chrome, Brave)
from mui-x.
Thank you for your confirmation regarding browsers. 👌
Hi, I looked into the stack solution but there's no such prop for DesktopDatePicker
Yes, such an exact prop does not exist and it's not that I would recommend the suggested solution, because it's just bad UX and a11y. 🙈
from mui-x.
The thing we identified was the focus is shifting to top because of some inset property to the class MuiPopper-root (I might be wrong)
from mui-x.
Is there any update?
from mui-x.
Related Issues (20)
- [charts][BarCharts] Is there some information regarding the `BarCharts` having accessibility? HOT 7
- [docs] Document the `day` slot in the "Visual customisation" doc
- [data grid] How to disable hover effect for datagrid column header? HOT 4
- [data grid] Cannot use data grid with react testing library HOT 7
- [charts] Some axis props cannot be assigned with xAxis/yAxis HOT 2
- [Data Grid] Column groups - header hierarchy is announced incorrectly NVDA screen reader HOT 4
- [pickers] Add a prop for setting a default staring value for Time Picker HOT 2
- [datagrid] filter layout position HOT 3
- [data grid] `processRowUpdate` should give access to the `id` of the row when `getRowId()` is used HOT 5
- [data grid] Get rid of `dataRowIdToIdLookup`
- [data grid] Incorrect row width causing misaligned column headers when using custom footer HOT 5
- [fields] Arrow editing is allowed on a disabled field with `enableAccessibleFieldDOMStructure` property HOT 8
- [data grid] Did MUI X v7 break tree data children selection? HOT 7
- Footer pagination moves when appear / disappear the vertical scrollbar HOT 1
- [Tree View] SimpleTreeView keyboard navigation is broken with React 17 HOT 1
- [data grid] How to Use Render Cell for Default Group Column Without Affecting Its Functionality? HOT 2
- Issue with Date / Time pickers v5.0.20 HOT 2
- [data grid] Column titles are getting strange overflow on tablets and cell phones HOT 2
- [data grid] Multi Column Sort Indicator Cut off when Column is narrow HOT 8
- [docs] DataGrid columns code hidden behind `useDemoData`
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 mui-x.