Comments (10)
Sure. We will fix this bug before moving to 4.0 and new controls. It's just a tip for those who need it now.
from taiga-ui.
@waterplea I can try to fix this one. Do we know any possible reasons of why this bug happens?
from taiga-ui.
@waterplea I can try to fix this one. Do we know any possible reasons of why this bug happens?
This is most likely a bug with Angular animations. You can try removing angular animation from radio and instead use CSS transform to scale it.
from taiga-ui.
As a workaround for now, you can start switching to the new radio component which is planned to replace current one:
https://taiga-ui.dev/experimental/radio
from taiga-ui.
But it's a workaround only for plain radio. Labeled radio and radio block still use non-experimental radion under the hood.
from taiga-ui.
You can try removing angular animation from radio and instead use CSS transform to scale it.
This is work. And i also found that tuiParentAnimation
cause this bug. I don't know exactly why, for some reason it's just blocks child animation. I removed tuiScaleAnimation
, CSS animation looks like this:
@keyframes scaleIn {
0%{
transform: scale(0);
}
100%{
transform: scale(1);
}
}
radio.mp4
from taiga-ui.
Parent animation is there to kick in :leave animations — it's a long standing Angular bug. What if you add the same line to kick in :enter animations in TUI_PARENT_ANIMATION? Would that fix the issue? Not that it's better than CSS solution, just want to fix tuiParentAnimation as well, if possible.
from taiga-ui.
Parent animation is there to kick in :leave animations — it's a long standing Angular bug. What if you add the same line to kick in :enter animations in TUI_PARENT_ANIMATION? Would that fix the issue? Not that it's better than CSS solution, just want to fix tuiParentAnimation as well, if possible.
Yeah, i know about this bug. I added this in TUI_PARENT_ANIMATION, but it has zero effect:
transition(`:enter`, [query(`* <=> *`, [animateChild()], {optional: true})]),
And also, what is the :scope
selector? I see this for the first time
transition(`:leave`, [query(`:scope > *`, [animateChild()], {optional: true})]),
from taiga-ui.
Yeah, I meant to try that. Ok, if it doesn't work then let's leave it at that. :scope
selector is kinda like this
in CSS:
https://developer.mozilla.org/en-US/docs/Web/CSS/:scope
from taiga-ui.
As for the CSS animation — remove ngIf
so this .t-mark
is always there and just toggle some class like .t-mark_visible
and use transition instead of animation. This way to would work both ways.
from taiga-ui.
Related Issues (20)
- 🐞 - Additional click required in InputDateRange for same day period
- 🐞 - Safari - Компонент input-inline - При редактировании длинной строки заголовка фокус всегда остается на начале строки
- 🐞 - The carousel scrolls through the elements until there is only one visible when you use the laptop's touchpad.
- 🚀 - Revisit webkit/moz specific selectors in core/mixins HOT 1
- 🐞 - textarea placeholder moved
- 🐞 - Cannot select text in nested hint HOT 2
- 🐞 - Incorrect tui-input-date-time value after several clicks HOT 1
- 🐞 - New `Textfield` with `<select tuiTextfield />` has incorrect behavior on IOS HOT 2
- 🐞 - `InputDateTime` with `[max]` distorts value on click HOT 1
- 🐞 - некорректные стили компонента RadioBlock
- 🐞 - MobileCalendarRange открывается в начале выбранного диапазона
- 🚀 - `TuiDialogService.open()` should be properly typed HOT 14
- 🐞 - incorrect displaying input-number with stepper in safari
- 🐞 - `InputDateTime` should format textfield value on blur in the same way as `InputTime`
- 🐞 - Скролл к инпуту после открытия мультиселекта
- 🐞 - AlertService - Nothing displayed HOT 8
- 🐞 - tinkoff_ng_dompurify_createDOMPurify is not a function on Angular 17 SSR HOT 5
- 🐞 - tui-scroll-controlls на скрывается на ipad 5 mini в пользу нативного
- 🐞 - Calendar does not open when nativePicker is enabled
- 🐞 - tuiAccordionItemContent SSR issue during hydration
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 taiga-ui.