Noblet Ouways
a5d2064936
chore: refine process.env judgment ( #23019 )
...
* Revert "chore: only show warnings in dev mode (#22675 )"
This reverts commit 1f7cdc3915 .
* chore: single condition
* Revert "chore(build): replace process (#21584 )"
This reverts commit 86f49acafd .
2025-12-09 13:07:23 +08:00
jarven
b2f2dbf66f
fix(components): [focus-trap, popper, tooltip] memory leak ( #20147 )
...
* fix(components): [focus-trap, popper, tooltip] memory leak
* fix(components): [popper] memory leak
* fix(components): [popper] memory leak
* fix(components): [focus-trap, popper, tooltip] memory leak
---------
Co-authored-by: qiang <qw13131wang@gmail.com >
2025-12-03 16:00:07 +08:00
sea
1f7cdc3915
chore: only show warnings in dev mode ( #22675 )
...
* chore: only show warnings in dev mode
* chore: test
* chore: test2
* chore: test3
* chore: test3
* chore: update 4
* chore: update
* chore: update
* chore: update
* chore: update
Co-authored-by: btea <2356281422@qq.com >
* chore: add security checks to all process
---------
Co-authored-by: btea <2356281422@qq.com >
2025-11-10 09:25:01 +08:00
qiang
9043e16d94
fix: the KeyboardEvent.code is always empty string on Android ( #22228 )
...
closed #20330
2025-09-21 01:23:38 +02:00
btea
333ed63b8f
fix(components): [focus-trap] destory el ref ( #21916 )
2025-09-04 09:42:00 +08:00
qiang
7a18e717d8
feat(components): [tooltip] add focus-on-target prop ( #21905 )
...
* feat(components): [tooltip] add focus-on-hover prop
* chore: rename ot focusOnTarget
* chore: remove focusVisible
* chore: error
2025-09-04 09:05:52 +08:00
sea
244e811b44
chore(eslint-config): add line-between-blocks rules ( #20051 )
2025-03-08 08:55:02 +08:00
qiang
456cccdace
fix(components): [focus-trap] tryFocus is invalid for document.body ( #19272 )
...
* fix(components): [focus-trap] optimize tryFocus
* test: add test
* chore: remove redundant code
* test: optimize test
2024-12-24 16:02:00 +08:00
qiang
343cacf5cc
fix(components): numpadEnter does not work like the Enter ( #18855 )
2024-11-14 21:14:51 +08:00
myron
0ef4b492b8
fix(components): fixed add listeners not remove on beforeunmount ( #17344 )
...
* fix(components): fixed add listeners not remove on beforeunmount
* docs(ci): close vue hoistStatic mode compile
* Update packages/components/popper/src/trigger.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/time-picker/src/common/picker.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/tooltip/src/content.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/tooltip/src/content.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/popper/src/trigger.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/autocomplete/src/autocomplete.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* Update packages/components/popper/src/trigger.vue
Co-authored-by: qiang <qw13131wang@gmail.com >
* ci: update full bundle vue compiler config, fixed hoistStatic error
* style: eslint fix
---------
Co-authored-by: qiang <qw13131wang@gmail.com >
2024-08-09 09:40:20 +08:00
fengmingjian
ec61c7b068
fix(components): [focus-trap] Fixed the function that removed the listener ( #13158 )
...
fix(components): [focus-trap]
correct-error-listening
closed #13128
Co-authored-by: fengmingjian <fmj@hanzhisoft.com >
2023-07-22 08:48:01 +08:00
Giwayume
3d43d51503
fix(components): [dropdown] fix focus after close ( #11586 )
...
* fix(components): [dropdown] fix focus after close
closed #9837
* fix(components): [dropdown] fix linting
* fix(components): remove events on unmount
---------
Co-authored-by: OpenGraphica <opengraphica@gmail.com >
2023-02-17 12:35:45 +08:00
zz
5a58f4e477
fix(components): [focus-trap] input selection ( #10606 )
...
* fix(components): [focus-trap] input selection
* chore: update
2022-12-10 20:15:47 +08:00
Xc
d72fd34b58
fix(components): [focus-trap] input select text ( #10535 )
2022-11-09 15:47:49 +08:00
Giwayume
8f1285f880
fix(components): [time-picker] fix popup not showing ( #9941 )
...
* fix(components): [time-picker] fix popup not showing
* fix(components): [focus-trap] track last active element automatically
* fix(components): linting
* fix(components): add preventDefault to focusout-prevented
* fix(components): sSR and typecheck
* fix(components): focus trap attach document events in mount
* fix(components): remove document undefined check
* fix(components): [select] fix click scrollbar closes popup
* fix(components): allow focus-trap to refocus after pick
Co-authored-by: OpenGraphica <opengraphica@gmail.com >
2022-10-13 14:42:27 +08:00
Giwayume
1758b12c7d
Fix/focus trap datepicker pick ( #8085 )
...
* fix(components): [focus-trap] escape while trapped
* fix(components): [date-picker] click to reopen while focused input
Co-authored-by: OpenGraphica <opengraphica@gmail.com >
2022-06-04 14:58:01 +08:00
opengraphica
6359538a45
fix(components): [focus-trap] popper input focus ( #8025 )
...
* fix(components): [focus-trap] fix reclaim focus for paused layer
* fix(components): [focus-trap] remove async
2022-06-01 15:05:36 +08:00
Giwayume
b6049dab1c
fix(components): [focus-trap] respect focusout null relatedTarget ( #7915 )
...
* fix(components): [focus-trap] respect focusout null relatedTarget
* fix(components): [focus-trap] use right variable this time
Co-authored-by: OpenGraphica <opengraphica@gmail.com >
2022-05-27 12:15:03 +08:00
三咲智子
cb3cfa06ad
chore: upgrade @vue/test-utils ( #7877 )
2022-05-25 12:05:50 +08:00
opengraphica
e1b88263e3
feat(components): [popper] focus trap and a11y ( #7736 )
...
* feat(components): [popper] fix focus traps
* feat(components): [popper] add focus trap tests
Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com >
2022-05-20 18:13:27 +08:00
opengraphica
9c51dab123
feat(components): [dialog] a11y and focus trap on dialog components ( #7550 )
...
* feat(components): [dialog] a11y and focus trap on dialog components
* feat(components): [dialog] remove default browser focus style
* feat(components): [dialog] clean up async and comment
2022-05-10 17:58:18 +08:00
三咲智子
1d13ebb05d
feat: drop jest ( #7248 )
...
* feat: drop jest
* test: remove ssr
* test: rename
* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0
test(components): switch all components to vitest ( #7205 )
...
Co-authored-by: 三咲智子 <sxzz@sxzz.moe >
2022-04-19 12:46:57 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports ( #6823 )
2022-03-25 15:35:56 +08:00
三咲智子
cb6300c739
refactor(components): [dialog] refactor ( #6300 )
...
* refactor(components): [dialog] refactor
- fix TS type.
- enhance prop type `beforeClose`
- move `token.ts` to `@element-plus/tokens`
* refactor: resolve review comments
* test: fix slots
2022-03-01 23:43:50 +08:00
JeremyWuuuuu
124bc0d03e
fix(components): [el-dialog] refactor left overs ( #6211 )
...
- Refactor left overs addressing
2022-02-22 16:44:43 +08:00
JeremyWuuuuu
d2e9de9511
feat(components): [el-dialog] enhancement for dialog a11y ( #6087 )
...
* feat(components): [el-dialog] enhancement for dialog a11y
- Refactor dialog to script setup
* Separates dialog and its content into different components
* Remove unused code & fix a potential bug in focus-trap component
* Update dialog-content.vue
Co-authored-by: bqy <1743369777@qq.com >
2022-02-22 12:49:28 +08:00
三咲智子
6503e55277
refactor(utils): migrate utils ( #5949 )
...
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils-v2): migrate utils
* refactor(utils): remove
* refactor(utils): rename
* refactor(utils): move EVENT_CODE to constants
* refactor: remove generic
2022-02-11 11:03:15 +08:00
jeremywu
dd19cae2bc
refactor(components): popper composables ( #5035 )
...
* refactor(components): popper composables
- Refactor popper composables
* updates
* updates for tooltip
* Updates for popper. TODO: fix controlled tooltip animation
* Fix controlled mode popper animation issue
* Add new feature for customizing tooltip theme
* Fix popover and popconfirm error
* - Add Collection component for wrapping a collection of component
- Add FocusTrap component for trap focus for popups
- Add RovingFocus component for roving focus component type
- Adjust dropdown component based on these newly added components
- Add popper-trigger component for placing the trigger
- TODO: Finish current dropdown component, and all component's tests plus documents
* Refactor popper
* Complete organizing popper
* Almost finish dropdown
* Update popper tests
* update only-child test
* Finish focus trap component test
* Finish tooltip content test
* Finish tooltip trigger tests
* Finish tooltip tests
* finish tests for Collection and RovingFocusGroup
* Fix test cases for timeselect & select & popover
* Fix popover, popconfirm, menu bug and test cases
* Fix select-v2 test error caused by updating popper
* Fix date-picker test issue for updating popper
* fix test cases
* Fix eslint
* Rebase dev & fix tests
* Remove unused code
2022-01-04 09:15:15 +08:00